Home / npm packages / babel-polyfill

babel-polyfill source code

Every file of babel-polyfill@6.26.0 as published on npm: 11 files, 461 KB. Search them by exact text or regex, in milliseconds.

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

What babel-polyfill uses

APIIn babel-polyfill
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 3 files
e.g. browser.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 2 files
e.g. scripts/postpublish.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
dist/polyfill.js249 KB
browser.js105 KB
dist/polyfill.min.js105 KB
lib/index.js833 B
package-lock.json522 B
package.json475 B
scripts/build-dist.sh443 B
scripts/prepublish.js216 B
scripts/postpublish.js133 B
.npmignore22 B
README.md18 B

Questions

How many files are in babel-polyfill?

Version 6.26.0 of babel-polyfill publishes 11 files of source, 461 KB in all, not counting images, fonts and source maps.

Does babel-polyfill use eval?

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

Does babel-polyfill start other programs?

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

Does babel-polyfill run an install script?

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