Home / npm packages / axios

axios source code

Every file of axios@1.20.0 as published on npm: 87 files, 1.5 MB. Search them by exact text or regex, in milliseconds.

It uses: process.env, the fs module, http / https, XMLHttpRequest, crypto, document.cookie.

What axios uses

APIIn axios
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
Yes: 2 files
e.g. dist/node/axios.cjs
See the lines
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: 2 files
e.g. dist/node/axios.cjs
See the lines
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
Yes: 9 files
e.g. dist/browser/axios.cjs
See the lines
crypto
hashes, encrypts or makes random numbers
Yes: 2 files
e.g. dist/node/axios.cjs
See the lines
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
Yes: 7 files
e.g. dist/browser/axios.cjs
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/node/axios.cjs232 KB
dist/axios.js207 KB
dist/esm/axios.js162 KB
dist/browser/axios.cjs161 KB
CHANGELOG.md141 KB
README.md108 KB
dist/axios.min.js68 KB
lib/adapters/http.js52 KB
dist/esm/axios.min.js51 KB
lib/utils.js31 KB
index.d.cts24 KB
index.d.ts23 KB
lib/adapters/fetch.js22 KB
MIGRATION_GUIDE.md22 KB
lib/helpers/shouldBypassProxy.js14 KB
lib/core/AxiosHeaders.js10 KB
lib/adapters/xhr.js9.8 KB
lib/core/Axios.js9.0 KB
lib/helpers/toFormData.js7.7 KB
lib/core/AxiosError.js7.0 KB
package.json6.7 KB
lib/core/mergeConfig.js5.8 KB
lib/defaults/index.js5.0 KB
lib/helpers/estimateDataURLDecodedBytes.js4.9 KB
lib/core/InterceptorManager.js4.2 KB
lib/helpers/AxiosTransformStream.js3.8 KB
lib/helpers/resolveConfig.js3.6 KB
lib/adapters/adapters.js3.5 KB
lib/helpers/formDataToJSON.js3.5 KB
lib/helpers/formDataToStream.js3.1 KB

Questions

How many files are in axios?

Version 1.20.0 of axios publishes 87 files of source, 1.5 MB in all, not counting images, fonts and source maps.

Does axios use eval?

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

Does axios start other programs?

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

Does axios run an install script?

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