Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

make-fetch-happen 8.0.14

Opinionated, caching, retrying fetch client
Package summary
Share
4
issues
1
high severity
meta
1
3
moderate severity
meta
3
4
licenses
35
MIT
28
ISC
1
BSD-2-Clause
1
BSD-3-Clause
Package created
27 Mar 2017
Version published
11 Feb 2021
Maintainers
5
Total deps
65
Direct deps
15
License
ISC

Issues

4

1 high severity issue

high
via: cacache@15.3.0
Collapse
Expand

3 moderate severity issues

moderate
via: cacache@15.3.0
via: cacache@15.3.0 & others
via: cacache@15.3.0 & others
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
35 Packages, Including:
@gar/promisify@1.1.3
@npmcli/move-file@1.1.2
@tootallnate/once@1.1.2
agent-base@6.0.2
agentkeepalive@4.5.0
aggregate-error@3.1.0
balanced-match@1.0.2
brace-expansion@1.1.11
clean-stack@2.2.0
concat-map@0.0.1
debug@4.3.4
encoding@0.1.13
err-code@2.0.3
http-proxy-agent@4.0.1
https-proxy-agent@5.0.1
humanize-ms@1.2.1
iconv-lite@0.6.3
imurmurhash@0.1.4
indent-string@4.0.0
ip-address@9.0.5
is-lambda@1.0.1
jsbn@1.1.0
minipass-fetch@1.4.1
minizlib@2.1.2
mkdirp@1.0.4
ms@2.1.2
ms@2.1.3
p-map@4.0.0
path-is-absolute@1.0.1
promise-retry@2.0.1
retry@0.12.0
safer-buffer@2.1.2
smart-buffer@4.2.0
socks-proxy-agent@5.0.1
socks@2.8.3

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
28 Packages, Including:
@npmcli/fs@1.1.1
cacache@15.3.0
chownr@2.0.0
fs-minipass@2.1.0
fs.realpath@1.0.0
glob@7.2.3
infer-owner@1.0.4
inflight@1.0.6
inherits@2.0.4
lru-cache@6.0.0
make-fetch-happen@8.0.14
minimatch@3.1.2
minipass-collect@1.0.2
minipass-flush@1.0.5
minipass-pipeline@1.2.4
minipass-sized@1.0.3
minipass@3.3.6
minipass@5.0.0
once@1.4.0
promise-inflight@1.0.1
rimraf@3.0.2
semver@7.6.0
ssri@8.0.1
tar@6.2.1
unique-filename@1.1.1
unique-slug@2.0.2
wrappy@1.0.2
yallist@4.0.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
http-cache-semantics@4.1.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
sprintf-js@1.1.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

15
All Dependencies CSV
β“˜ This is a list of make-fetch-happen 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
agentkeepalive4.5.012.86 kBMIT
prod
cacache15.3.021.46 kBISC
prod
1
3
http-cache-semantics4.1.110.56 kBBSD-2-Clause
prod
http-proxy-agent4.0.15.7 kBMIT
prod
https-proxy-agent5.0.18.21 kBMIT
prod
is-lambda1.0.11.8 kBMIT
prod
lru-cache6.0.05.65 kBISC
prod
minipass-collect1.0.22.01 kBISC
prod
1
minipass-fetch1.4.112.18 kBMIT
prod
minipass-flush1.0.51.93 kBISC
prod
minipass-pipeline1.2.42.93 kBISC
prod
1
minipass3.3.614.98 kBISC
prod
promise-retry2.0.14 kBMIT
prod
socks-proxy-agent5.0.16.01 kBMIT
prod
ssri8.0.113.76 kBISC
prod

Visualizations

Frequently Asked Questions

What does make-fetch-happen do?

The make-fetch-happen is an advanced Node.js library that enhances the capabilities of the minipass-fetch by providing additional features that minipass-fetch does not inherently include. Some of these additional features include HTTP cache support, request pooling, retries, and advanced proxy support, among others. Boosted by automated HTTP-semantics-aware request retries and cache-fallback automatic offline mode, this library is designed to supercharge the fetching of resources in your Node.js application.

How do you use make-fetch-happen?

To use make-fetch-happen, one needs to first install it using npm, as shown in the example below:

$ npm install --save make-fetch-happen

Once installed, you can include it into your JavaScript file and use its default or customized methods to fetch resources as follows:

const fetch = require('make-fetch-happen').defaults({
  cachePath: './my-cache' // path where cache will be written (and read)
})

fetch('https://registry.npmjs.org/make-fetch-happen').then(res => {
  return res.json() // download the body as JSON
}).then(body => {
  console.log(`got ${body.name} from web`)
  return fetch('https://registry.npmjs.org/make-fetch-happen', {
    cache: 'no-cache' // forces a conditional request
  })
}).then(res => {
  console.log(res.status) // 304! cache validated!
  return res.json().then(body => {
    console.log(`got ${body.name} from cache`)
  })
})

With make-fetch-happen, you can control the behavior of the fetch operation by defining additional options such as the cache path, cache behavior, proxies, and more, giving you granular control over the fetch process in your app.

Where are the make-fetch-happen docs?

The make-fetch-happen documentation is housed within the GitHub repository for this library. You can access a comprehensive guide and API reference on this npm package here. The documentation provides a detailed explanation of the installation process, usage examples, supported features, contributing guides, and various API options. Whether you're interested in the details of minipass-fetch options or make-fetch-happen custom options, all the information is clearly outlined within this doc, making it a valuable resource for anyone looking to utilize this library.