Wondering what’s next for npm?Check out our public roadmap! »

@borderless/parse-authorizationTypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Parse Authorization

NPM version NPM downloads Build status Test coverage

Parse the HTTP authorization header.

Installation

npm install @borderless/parse-authorization --save

Usage

import { basic, bearer } from "@borderless/parse-authorization";
 
expect(bearer("Bearer 123")).toEqual("123");
expect(basic("Basic dGVzdDoxMjPCow==")).toEqual(["test", "123£"]);

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Install

npm i @borderless/parse-authorization

DownloadsWeekly Downloads

115

Version

1.0.0

License

MIT

Unpacked Size

19.5 kB

Total Files

13

Last publish

Collaborators

  • avatar