JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3224
  • Score
    100M100P100Q167116F
  • License MIT

RFC2617 basic authorization header from username and password.

Package Exports

  • basic-authorization-header

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (basic-authorization-header) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

basic-authorization-header

npm NPM downloads Dependency Status Code Climate Build Status js-standard-style

RFC2617 basic authorization header from username and password.

$ npm install basic-authorization-header --save

Example

var basic = require('basic-authorization-header');
basic("Aladdin", "open sesame")
//=> Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

API

basic(user, pass)
  • user username.
  • pass password.

Reference

Notes

If you just want the token, check out basic-authorization-header.

Licenses

LICENSE