🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

digest-fetch

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digest-fetch

digest auth request plugin for fetch/node-fetch

Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
493K
11.07%
Maintainers
1
Weekly downloads
 
Created
Source

digest-fetch

NPM Version NPM Downloads Build Status Test Coverage

digest auth request plugin for fetch/node-fetch.

Installation

// dependencies for node
npm install crypto-js node-fetch

// dependencies for browser
<script src='path-to-crypto-js.js'></script>

npm install digest-fetch

Get Started

const DigestFetch = require('digest-fetch')
const client = DigestFetch('user', 'password', console) // console as logger, optional parameter
// do request same way as fetch or node-fetch
const url = ''
const options = {}
client.fetch(url, options)
  .then(resp=>resp.json())
  .then(data=>console.log(data))
  .catch(e=>console.error(e))

Keywords

digest

FAQs

Package last updated on 25 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts