Home / npm packages / esm

esm source code

Every file of esm@3.2.25 as published on npm: 6 files, 309 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), child_process, the fs module, WebAssembly.

What esm uses

APIIn esm
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. esm.js
See the lines
child_process
starts other programs
Yes: 1 file
e.g. esm/loader.js
See the lines
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 1 file
e.g. esm.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
Yes: 1 file
e.g. esm/loader.js
See the lines
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
esm/loader.js297 KB
README.md7.7 KB
esm.js2.0 KB
LICENSE1.1 KB
package.json658 B
index.js48 B

Questions

How many files are in esm?

Version 3.2.25 of esm publishes 6 files of source, 309 KB in all, not counting images, fonts and source maps.

Does esm use eval?

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

Does esm start other programs?

Yes: esm uses child_process in 1 of its files.

Does esm run an install script?

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