Home / npm packages / core-js

core-js source code

Every file of core-js@3.50.0 as published on npm: 3,728 files, 1.1 MB (the numbers below cover its first 3,000). Search them by exact text or regex, in milliseconds.

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

What core-js uses

APIIn core-js
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 5 files
e.g. internals/async-iterator-prototype.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 1 file
e.g. postinstall.js
See the lines
the fs module
reads and writes files
Yes: 1 file
e.g. postinstall.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
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
full/index.js24 KB
stable/index.js14 KB
es/index.js13 KB
modules/es.symbol.constructor.js11 KB
internals/array-buffer.js10 KB
modules/es.promise.constructor.js10.0 KB
modules/es.json.stringify.js10.0 KB
modules/es.json.parse.js8.9 KB
internals/collection-strong.js8.0 KB
internals/array-buffer-view-core.js7.6 KB
modules/es.regexp.constructor.js7.3 KB
modules/esnext.observable.constructor.js6.3 KB
modules/es.string.replace.js5.8 KB
internals/async-iterator-create-proxy.js5.5 KB
modules/es.async-disposable-stack.constructor.js5.0 KB
modules/esnext.string.dedent.js5.0 KB
modules/es.string.split.js4.8 KB
modules/es.math.sum-precise.js4.7 KB
modules/es.number.constructor.js4.6 KB
internals/collection.js4.6 KB
internals/iterator-define.js4.5 KB
internals/collection-weak.js4.5 KB
modules/es.string.match-all.js4.4 KB
internals/regexp-exec.js4.2 KB
modules/es.weak-map.constructor.js4.2 KB
modules/es.disposable-stack.constructor.js4.0 KB
internals/iterator-create-proxy.js3.9 KB
internals/async-iterator-iteration.js3.8 KB
internals/numeric-range-iterator.js3.7 KB
modules/es.number.to-fixed.js3.7 KB

Questions

How many files are in core-js?

Version 3.50.0 of core-js publishes 3,728 files of source, 1.1 MB in all (the numbers below cover its first 3,000), not counting images, fonts and source maps.

Does core-js use eval?

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

Does core-js start other programs?

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

Does core-js run an install script?

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