Skip to content

serviejs/popsicle-basic-auth

Repository files navigation

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

About

Add basic authentication to Popsicle requests

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published