basic-auth-parser

Parse Basic Auth `Authorization` HTTP headers

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
basic-auth-parser
0.0.2-110 months ago10 years agoMinified + gzip package size for basic-auth-parser in KB

Readme

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' }