@meathill/digest-fetch
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Digest fetch

This is a simple wrapper for fetch, to make a request with digest auth.

It uses no dependencies, can work in Edge Function environment.

Usage

import digestFetch from '@meathill/digest-fetch';

const response = await digestFetch(
  url, 
  { // data
    foo: 'bar',
  },
  {
    method: 'POST',
    realm: 'realm',
    username: 'username',
    password: 'password',
  },
);

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @meathill/digest-fetch

Weekly Downloads

0

Version

0.1.4

License

ISC

Unpacked Size

10.6 kB

Total Files

11

Last publish

Collaborators

  • meathill