@meathill/digest-fetch

A tiny fetch wrapper to add digest auth support, without any dependencies.
240
Install
npm install @meathill/digest-fetch
Latest Version:0.1.4
License:ISC
Last Updated:Sep 2, 2023
Links: npm
Maintainer: meathill

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

Related Packages

@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
@system76/js-api

JavaScript fetch wrapper for Elixir Phoenix APIs

1,036 5
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
nuxt-api-party

Auto-generated composables for any API, typed from OpenAPI and never exposing yo...

246,965 306

Version History

Version Released License
0.1.4 ISC
0.1.3 ISC
0.1.2 ISC
0.1.1 ISC
0.1.0 ISC