Token generated by concatenating username and password with `:` character within a base64 encoded string.
npm install basic-auth-token: character within a base64 encoded string.  
``shell`
npm install basic-auth-token --save
###### npm stats
  
`js`
var token = require('basic-auth-token');
token("Aladdin", "open sesame")
//=> QWxhZGRpbjpvcGVuIHNlc2FtZQ==
###### arguments
* user: (String) username.pass: (String)
* password.
###### returns
* (String)` token.
- [RFC2617]
- [Security Considerations]
- [Increasing Security]
If you want the full [RFC2617] authorization header value, check out basic-authorization-header.

[RFC2617]: https://tools.ietf.org/html/rfc2617#section-2
[Security Considerations]: https://tools.ietf.org/html/rfc2617#section-4
[Increasing Security]: http://security.stackexchange.com/a/27881/72283