plug-dj-login

Log in to Plug.dj and get an auth cookie

Usage no npm install needed!

<script type="module">
  import plugDjLogin from 'https://cdn.skypack.dev/plug-dj-login';
</script>

README

plug-dj-login

Log in to Plug.dj and get an auth cookie

Usage

var plugLogin = require('plug-dj-login')

var creds = {
    username: 'twitter-username'
  , password: 'twitter-password'
}

plugLogin(creds, function(err, cookie) {
  console.log(cookie.name, cookie.value);
})

Installation

npm install plug-dj-login

License

MIT