Home / npm packages / react-scripts

react-scripts source code

Every file of react-scripts@5.0.1 as published on npm: 24 files, 116 KB. Search them by exact text or regex, in milliseconds.

It uses: child_process, process.env, the fs module, crypto.

What react-scripts uses

APIIn react-scripts
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
Yes: 3 files
e.g. scripts/eject.js
See the lines
process.env
reads environment variables
Yes: 10 files
e.g. config/jest/babelTransform.js
See the lines
the fs module
reads and writes files
Yes: 9 files
e.g. scripts/utils/createJestConfig.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
Yes: 2 files
e.g. config/webpack/persistentCache/createEnvironmentHash.js
See the lines
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
config/webpack.config.js32 KB
scripts/init.js12 KB
scripts/eject.js10 KB
scripts/utils/verifyTypeScriptSetup.js8.4 KB
scripts/build.js7.2 KB
config/webpackDevServer.config.js6.6 KB
config/paths.js5.8 KB
scripts/utils/createJestConfig.js5.0 KB
scripts/start.js5.0 KB
config/env.js4.4 KB
config/modules.js3.7 KB
scripts/test.js3.4 KB
package.json2.8 KB
config/getHttpsConfig.js2.1 KB
bin/react-scripts.js1.9 KB
lib/react-app.d.ts1.3 KB
config/jest/fileTransform.js1.3 KB
LICENSE1.1 KB
config/jest/babelTransform.js767 B
config/jest/cssTransform.js547 B
README.md415 B
config/webpack/persistentCache/createEnvironmentHash.js186 B
template-typescript/README.md135 B
template/README.md124 B

Questions

How many files are in react-scripts?

Version 5.0.1 of react-scripts publishes 24 files of source, 116 KB in all, not counting images, fonts and source maps.

Does react-scripts use eval?

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

Does react-scripts start other programs?

Yes: react-scripts uses child_process in 3 of its files.

Does react-scripts run an install script?

No: react-scripts 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