Home / npm packages / semver

semver source code

Every file of semver@7.8.5 as published on npm: 53 files, 101 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env.

What semver uses

APIIn semver
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: 1 file
e.g. internal/debug.js
See the lines
the fs module
reads and writes files
NoWho does
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
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
README.md26 KB
classes/range.js16 KB
classes/semver.js9.9 KB
internal/re.js8.1 KB
ranges/subset.js7.5 KB
bin/semver.js5.0 KB
classes/comparator.js3.6 KB
index.js2.7 KB
ranges/outside.js2.2 KB
functions/coerce.js2.0 KB
package.json1.7 KB
ranges/min-version.js1.5 KB
functions/diff.js1.4 KB
ranges/simplify.js1.4 KB
functions/truncate.js1.0 KB
functions/cmp.js961 B
internal/constants.js873 B
internal/lrucache.js802 B
LICENSE765 B
range.bnf702 B
ranges/max-satisfying.js593 B
ranges/min-satisfying.js591 B
internal/identifiers.js525 B
functions/inc.js478 B
internal/parse-options.js338 B
functions/parse.js331 B
ranges/valid.js326 B
ranges/to-comparators.js282 B
functions/compare-build.js281 B
functions/satisfies.js247 B

Questions

How many files are in semver?

Version 7.8.5 of semver publishes 53 files of source, 101 KB in all, not counting images, fonts and source maps.

Does semver use eval?

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

Does semver start other programs?

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

Does semver run an install script?

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