Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

popsicle-basic-auth

2.0.0 • Public • Published

Popsicle Basic Auth

NPM version NPM downloads Build status Test coverage

Add basic authentication to requests.

Installation

npm install popsicle-basic-auth --save

Usage

import { middleware, toFetch } from "popsicle";
import { Request } from "popsicle/dist/node";
import { auth } from "popsicle-basic-auth";
 
const fetch = toFetch([auth("blakeembrey", "hunter2"), middleware], Request);

License

MIT

Install

npm i popsicle-basic-auth

DownloadsWeekly Downloads

517

Version

2.0.0

License

MIT

Unpacked Size

8.91 kB

Total Files

9

Last publish

Collaborators

  • avatar