Home / npm packages / uglify-js

uglify-js source code

Every file of uglify-js@3.19.3 as published on npm: 20 files, 1.3 MB. Search them by exact text or regex, in milliseconds.

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

What uglify-js uses

APIIn uglify-js
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 6 files
e.g. lib/ast.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 1 file
e.g. tools/node.js
See the lines
the fs module
reads and writes files
Yes: 2 files
e.g. bin/uglifyjs
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
Yes: 1 file
e.g. tools/domprops.json
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/compress.js654 KB
tools/domprops.json184 KB
lib/ast.js84 KB
lib/parse.js84 KB
lib/output.js68 KB
README.md58 KB
lib/mozilla-ast.js47 KB
lib/scope.js32 KB
bin/uglifyjs24 KB
tools/domprops.html14 KB
lib/minify.js11 KB
lib/propmangle.js11 KB
lib/transform.js9.6 KB
lib/utils.js9.4 KB
lib/sourcemap.js7.1 KB
tools/node.js3.9 KB
LICENSE1.3 KB
package.json1.1 KB
tools/tty.js794 B
tools/exports.js270 B

Questions

How many files are in uglify-js?

Version 3.19.3 of uglify-js publishes 20 files of source, 1.3 MB in all, not counting images, fonts and source maps.

Does uglify-js use eval?

No: uglify-js doesn't call eval() anywhere in its published files.

Does uglify-js start other programs?

No: uglify-js doesn't use child_process anywhere in its published files.

Does uglify-js run an install script?

No: uglify-js 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