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