Home / npm packages / superagent

superagent source code

Every file of superagent@10.4.1 as published on npm: 21 files, 606 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), process.env, the fs module, http / https, XMLHttpRequest.

What superagent uses

APIIn superagent
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 2 files
e.g. dist/superagent.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 1 file
e.g. lib/node/index.js
See the lines
the fs module
reads and writes files
Yes: 1 file
e.g. lib/node/index.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
Yes: 1 file
e.g. lib/node/index.js
See the lines
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
Yes: 3 files
e.g. lib/client.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
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
lib/node/index.js171 KB
dist/superagent.js115 KB
lib/client.js89 KB
lib/request-base.js66 KB
dist/superagent.min.js53 KB
lib/node/http2wrapper.js21 KB
lib/node/agent.js19 KB
lib/utils.js13 KB
lib/node/response.js12 KB
README.md11 KB
lib/response-base.js10 KB
lib/node/unzip.js7.4 KB
package.json3.9 KB
lib/node/parsers/json.js3.6 KB
lib/agent-base.js3.0 KB
lib/node/decompress.js2.1 KB
lib/node/parsers/urlencoded.js1.8 KB
lib/node/parsers/index.js1.6 KB
lib/node/parsers/image.js1.3 KB
LICENSE1.1 KB
lib/node/parsers/text.js1.1 KB

Questions

How many files are in superagent?

Version 10.4.1 of superagent publishes 21 files of source, 606 KB in all, not counting images, fonts and source maps.

Does superagent use eval?

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

Does superagent start other programs?

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

Does superagent run an install script?

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