Home / npm packages / node-fetch

node-fetch source code

Every file of node-fetch@3.3.2 as published on npm: 17 files, 107 KB. Search them by exact text or regex, in milliseconds.

It uses: the fs module, http / https, fetch(), XMLHttpRequest.

What node-fetch uses

APIIn node-fetch
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 1 file
e.g. README.md
See the lines
http / https
makes or serves HTTP requests with Node's own modules
Yes: 4 files
e.g. src/headers.js
See the lines
fetch()
makes HTTP requests
Yes: 3 files
e.g. src/index.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
Yes: 1 file
e.g. README.md
See the lines
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
README.md29 KB
src/index.js13 KB
src/utils/referrer.js12 KB
src/body.js9.9 KB
src/utils/multipart-parser.js9.6 KB
src/request.js8.6 KB
src/headers.js6.9 KB
@types/index.d.ts6.6 KB
src/response.js3.4 KB
package.json3.0 KB
src/utils/is.js2.2 KB
LICENSE.md1.1 KB
src/errors/fetch-error.js871 B
src/errors/base.js346 B
src/utils/get-search.js296 B
src/utils/is-redirect.js229 B
src/errors/abort-error.js218 B

Questions

How many files are in node-fetch?

Version 3.3.2 of node-fetch publishes 17 files of source, 107 KB in all, not counting images, fonts and source maps.

Does node-fetch use eval?

No: node-fetch doesn't call eval() anywhere in its published files.

Does node-fetch start other programs?

No: node-fetch doesn't use child_process anywhere in its published files.

Does node-fetch run an install script?

No: node-fetch has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine