with-digest-fetch
v0.7.0
Published
digest auth request plugin for fetch/node-fetch also support http basic auth authentication
Downloads
12
Maintainers
Readme
with-digest-fetch
Forked from digest-fetch
, build for cjs/esm support.
See https://github.com/devfans/digest-fetch#readme for usage.
Changes in this fork
- Ships both ESM and CJS bundles with correct module exports.
- Better TypeScript support.
Install
npm install with-digest-fetch
Usage
import DigestClient from "with-digest-fetch";
const client = new DigestClient("user", "password");
await client.fetch(url, options);