Skip to content

mmalecki/basic-auth-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Parse Basic Auth `Authorization` HTTP headers

Resources

License

Stars

Watchers

Forks

Packages

No packages published