JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3126
  • Score
    100M100P100Q167076F
  • 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

Code Climate Build Status js-standard-style NPM version NPM downloads LICENSE

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-auth-token.

License

MIT