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 Apr 28, 2024 via pnpm

make-fetch-happen 13.0.0

Opinionated, caching, retrying fetch client
Package summary
Share
5
issues
2
high severity
license
2
1
moderate severity
meta
1
2
low severity
license
2
5
licenses
40
MIT
29
ISC
2
BlueOak-1.0.0
2
other licenses
BSD-2-Clause
1
BSD-3-Clause
1
Package created
27 Mar 2017
Version published
15 Aug 2023
Maintainers
5
Total deps
73
Direct deps
11
License
ISC

Issues

5

2 high severity issues

high
Recommendation: Read and validate the license terms
via: cacache@18.0.2
Recommendation: Read and validate the license terms
via: cacache@18.0.2
Collapse
Expand

1 moderate severity issue

moderate
via: cacache@18.0.2 & others
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: cacache@18.0.2
Recommendation: Read and validate the license terms
via: cacache@18.0.2
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
40 Packages, Including:
@pkgjs/parseargs@0.11.0
agent-base@7.1.1
aggregate-error@3.1.0
ansi-regex@6.0.1
ansi-styles@6.2.1
balanced-match@1.0.2
brace-expansion@2.0.1
clean-stack@2.2.0
cross-spawn@7.0.3
debug@4.3.4
eastasianwidth@0.2.0
emoji-regex@9.2.2
encoding@0.1.13
err-code@2.0.3
http-proxy-agent@7.0.2
https-proxy-agent@7.0.4
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@3.0.4
minizlib@2.1.2
mkdirp@1.0.4
ms@2.1.2
negotiator@0.6.3
p-map@4.0.0
path-key@3.1.1
promise-retry@2.0.1
retry@0.12.0
safer-buffer@2.1.2
shebang-command@2.0.0
shebang-regex@3.0.0
smart-buffer@4.2.0
socks-proxy-agent@8.0.3
socks@2.8.3
string-width@5.1.2
strip-ansi@7.1.0
wrap-ansi@8.1.0

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
29 Packages, Including:
@isaacs/cliui@8.0.2
@npmcli/agent@2.2.2
@npmcli/fs@3.1.0
cacache@18.0.2
chownr@2.0.0
foreground-child@3.1.1
fs-minipass@2.1.0
fs-minipass@3.0.3
glob@10.3.12
isexe@2.0.0
lru-cache@10.2.2
lru-cache@6.0.0
make-fetch-happen@13.0.0
minimatch@9.0.4
minipass-collect@2.0.1
minipass-flush@1.0.5
minipass-pipeline@1.2.4
minipass-sized@1.0.3
minipass@3.3.6
minipass@5.0.0
minipass@7.0.4
semver@7.6.0
signal-exit@4.1.0
ssri@10.0.5
tar@6.2.1
unique-filename@3.0.0
unique-slug@4.0.0
which@2.0.2
yallist@4.0.0

Blue Oak Model License 1.0.0

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
2 Packages, Including:
jackspeak@2.3.6
path-scurry@1.10.2

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

11
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
@npmcli/agent2.2.217.32 kBISC
prod
cacache18.0.218.92 kBISC
prod
2
1
2
http-cache-semantics4.1.110.56 kBBSD-2-Clause
prod
is-lambda1.0.11.8 kBMIT
prod
minipass-fetch3.0.413.22 kBMIT
prod
minipass-flush1.0.51.93 kBISC
prod
minipass-pipeline1.2.42.93 kBISC
prod
1
minipass7.0.460.34 kBISC
prod
negotiator0.6.36.25 kBMIT
prod
promise-retry2.0.14 kBMIT
prod
ssri10.0.511.21 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.