Home / npm packages / whatwg-fetch

whatwg-fetch source code

Every file of whatwg-fetch@3.6.20 as published on npm: 7 files, 57 KB. Search them by exact text or regex, in milliseconds.

It uses: fetch(), XMLHttpRequest, document.cookie.

What whatwg-fetch uses

APIIn whatwg-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
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 5 files
e.g. fetch.js.flow
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
Yes: 3 files
e.g. fetch.js
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
Yes: 1 file
e.g. README.md
See the lines
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
dist/fetch.umd.js20 KB
fetch.js18 KB
README.md11 KB
fetch.js.flow3.2 KB
dist/fetch.umd.js.flow3.2 KB
package.json1.2 KB
LICENSE1.1 KB

Questions

How many files are in whatwg-fetch?

Version 3.6.20 of whatwg-fetch publishes 7 files of source, 57 KB in all, not counting images, fonts and source maps.

Does whatwg-fetch use eval?

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

Does whatwg-fetch start other programs?

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

Does whatwg-fetch run an install script?

No: whatwg-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