basic-auth-parser
parses Basic Auth Authorization
HTTP headers.
npm install basic-auth-parser
var basicAuthParser = require('./');
console.dir(basicAuthParser('Basic YWRtaW46cGFzc3dvcmQ='));
Output:
{ scheme: 'Basic', username: 'admin', password: 'password' }