Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

basic-auth-parser

mmalecki221.7k0.0.2-1

Parse Basic Auth Authorization HTTP headers

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