basic-authorization-header
RFC2617 basic authorization header from username and password.
npm install basic-authorization-header --save
npm stats
Example
var basic = ;var headers = 'Authorization': ; //=> { Authorization: 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==' }
API
basic(user, pass)
arguments
user: (String)
username.pass: (String)
password.
returns
(String)
basic authorization header value.
Reference
Notes
If you just want the token, check out basic-auth-token.