Home / npm packages / got

got source code

Every file of got@16.0.0 as published on npm: 53 files, 449 KB. Search them by exact text or regex, in milliseconds.

It uses: http / https, crypto.

What got uses

APIIn got
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
Yes: 10 files
e.g. dist/source/core/utils/http2-client.js
See the lines
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 2 files
e.g. dist/source/core/diagnostics-channel.js
See the lines
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
dist/source/core/index.js101 KB
dist/source/core/options.js91 KB
dist/source/core/options.d.ts65 KB
dist/source/core/utils/http2-client.js44 KB
readme.md24 KB
dist/source/core/utils/dns-cache.js19 KB
dist/source/as-promise/index.js14 KB
dist/source/create.js14 KB
dist/source/types.d.ts12 KB
dist/source/core/index.d.ts7.5 KB
dist/source/core/utils/timer.js7.2 KB
dist/source/core/timed-out.js5.3 KB
dist/source/core/errors.js4.9 KB
dist/source/core/response.d.ts4.0 KB
dist/source/core/utils/http2-client.d.ts3.7 KB
package.json3.4 KB
dist/source/core/errors.d.ts3.2 KB
dist/source/core/parse-link-header.js3.1 KB
dist/source/core/diagnostics-channel.d.ts2.5 KB
dist/source/core/response.js2.4 KB
dist/source/core/utils/dns-cache.d.ts1.7 KB
dist/source/core/utils/options-to-url.js1.5 KB
dist/source/core/diagnostics-channel.js1.5 KB
dist/source/as-promise/types.d.ts1.2 KB
license1.1 KB
dist/source/core/calculate-retry-delay.js1.1 KB
dist/source/core/utils/defer-to-connect.js1.1 KB
dist/source/core/timed-out.d.ts893 B
dist/source/core/utils/timer.d.ts781 B
dist/source/core/utils/unhandle.js712 B

Questions

How many files are in got?

Version 16.0.0 of got publishes 53 files of source, 449 KB in all, not counting images, fonts and source maps.

Does got use eval?

No: got doesn't call eval() anywhere in its published files.

Does got start other programs?

No: got doesn't use child_process anywhere in its published files.

Does got run an install script?

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