Home / npm packages / cross-spawn

cross-spawn source code

Every file of cross-spawn@7.0.6 as published on npm: 9 files, 16 KB. Search them by exact text or regex, in milliseconds.

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

What cross-spawn uses

APIIn cross-spawn
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. index.js
See the lines
process.env
reads environment variables
Yes: 2 files
e.g. lib/parse.js
See the lines
the fs module
reads and writes files
Yes: 1 file
e.g. lib/util/readShebang.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
README.md4.1 KB
lib/parse.js3.1 KB
package.json1.7 KB
lib/util/resolveCommand.js1.6 KB
lib/enoent.js1.5 KB
lib/util/escape.js1.4 KB
index.js1.2 KB
LICENSE1.1 KB
lib/util/readShebang.js549 B

Questions

How many files are in cross-spawn?

Version 7.0.6 of cross-spawn publishes 9 files of source, 16 KB in all, not counting images, fonts and source maps.

Does cross-spawn use eval?

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

Does cross-spawn start other programs?

Yes: cross-spawn uses child_process in 3 of its files.

Does cross-spawn run an install script?

No: cross-spawn 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