Socket
Socket
Sign inDemoInstall

basic-authorization-header

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-authorization-header

RFC2617 basic authorization header from username and password.


Version published
Maintainers
1
Install size
12.8 kB
Created

Changelog

Source

0.2.7 - 2015-05-30

Added

  • add release scripts.

Changed

  • update outdated deps.
  • fixpack.

Readme

Source

basic-authorization-header

RFC2617 basic authorization header from username and password.

Build Status Code Climate js-standard-style

npm install basic-authorization-header --save
npm stats

npm NPM downloads Dependency Status

Example

var basic = require('basic-authorization-header');
var headers = {
  'Authorization': basic("Aladdin", "open sesame"),
};

//=> { Authorization: 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==' }

API

basic(user, pass)

arguments
  • user: (String) username.
  • pass: (String) password.
returns
  • (String) basic authorization header value.

Reference

Notes

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

Licenses

GitHub license

Keywords

FAQs

Last updated on 31 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc