Home / npm packages / esbuild

esbuild source code

Every file of esbuild@0.28.2 as published on npm: 7 files, 147 KB. Search them by exact text or regex, in milliseconds.

It uses: child_process, process.env, the fs module, http / https, fetch(), crypto, WebAssembly, install scripts.

What esbuild uses

APIIn esbuild
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
Yes: 3 files
e.g. bin/esbuild
See the lines
process.env
reads environment variables
Yes: 3 files
e.g. bin/esbuild
See the lines
the fs module
reads and writes files
Yes: 3 files
e.g. bin/esbuild
See the lines
http / https
makes or serves HTTP requests with Node's own modules
Yes: 1 file
e.g. install.js
See the lines
fetch()
makes HTTP requests
Yes: 1 file
e.g. install.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 2 files
e.g. install.js
See the lines
WebAssembly
loads WebAssembly code
Yes: 2 files
e.g. lib/main.js
See the lines
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
Yes: 1 file
e.g. package.json
See the lines

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

Largest files

FileSize
lib/main.js97 KB
lib/main.d.ts24 KB
install.js12 KB
bin/esbuild9.4 KB
package.json4.0 KB
LICENSE.md1.1 KB
README.md175 B

Questions

How many files are in esbuild?

Version 0.28.2 of esbuild publishes 7 files of source, 147 KB in all, not counting images, fonts and source maps.

Does esbuild use eval?

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

Does esbuild start other programs?

Yes: esbuild uses child_process in 3 of its files.

Does esbuild run an install script?

Yes: esbuild has an install script in its package.json, so it runs code when it's installed.

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