basic-auth-parser

Parse Basic Auth `Authorization` HTTP headers

npm install basic-auth-parser
11 downloads in the last day
96 downloads in the last week
630 downloads in the last month

basic-auth-parser Build Status

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' }
npm loves you