Home / npm packages / babel-core

babel-core source code

Every file of babel-core@6.26.3 as published on npm: 32 files, 107 KB. Search them by exact text or regex, in milliseconds.

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

What babel-core uses

APIIn babel-core
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 1 file
e.g. lib/api/browser.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 1 file
e.g. lib/transformation/file/options/build-config-chain.js
See the lines
the fs module
reads and writes files
Yes: 2 files
e.g. lib/api/node.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
Yes: 1 file
e.g. lib/api/browser.js
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/transformation/file/index.js19 KB
lib/transformation/file/options/option-manager.js12 KB
lib/transformation/file/merge-map.js9.1 KB
README.md7.4 KB
lib/transformation/file/options/build-config-chain.js5.3 KB
lib/transformation/plugin.js4.9 KB
lib/api/browser.js4.6 KB
lib/transformation/file/metadata.js4.6 KB
lib/util.js4.4 KB
lib/api/node.js4.3 KB
lib/transformation/file/options/config.js4.1 KB
lib/transformation/internal-plugins/shadow-functions.js3.7 KB
lib/tools/build-external-helpers.js3.6 KB
lib/transformation/pipeline.js2.2 KB
lib/transformation/plugin-pass.js2.0 KB
lib/transformation/file/logger.js1.9 KB
lib/transformation/file/options/removed.js1.7 KB
lib/store.js1.5 KB
package.json1.3 KB
lib/helpers/resolve.js1.2 KB
lib/helpers/merge.js1.2 KB
lib/transformation/file/options/index.js1.1 KB
lib/transformation/internal-plugins/block-hoist.js1.1 KB
lib/transformation/file/options/parsers.js896 B
lib/helpers/resolve-plugin.js770 B
lib/helpers/resolve-preset.js770 B
lib/helpers/normalize-ast.js706 B
lib/helpers/resolve-from-possible-names.js497 B
lib/helpers/get-possible-preset-names.js464 B
lib/helpers/get-possible-plugin-names.js221 B

Questions

How many files are in babel-core?

Version 6.26.3 of babel-core publishes 32 files of source, 107 KB in all, not counting images, fonts and source maps.

Does babel-core use eval?

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

Does babel-core start other programs?

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

Does babel-core run an install script?

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