cross-spawn
npmv7.0.6Cross platform child_process#spawn and child_process#spawnSync
Overview
cross-spawn is an npm package that cross platform child_process#spawn and child_process#spawnSync. The latest version is 7.0.6, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need cross platform child_process#spawn and child_process#spawnSync and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- Large dependency tree (16 direct dependencies) increases install size and audit surface.
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of cross-spawn.
Dependencies
Dev (13)
Used by
Popular packages that depend on cross-spawn.
Native-ESM powered web dev build tool
An AST-based pattern checker for JavaScript.
A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.
yargs the modern, pirate-themed, successor to optimist.
Alternatives to cross-spawn
Get the PATH environment variable key cross-platform
Get the command from a shebang
A framework for building native apps using React
A minimal library for executing processes in Node
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Convert Windows backslash paths to slash paths
Frequently installed together
An AST-based pattern checker for JavaScript.
Runtime typescript and ESM support for Node.js
TypeScript definitions for node
The semantic version parser used by npm.
An extremely fast JavaScript and CSS bundler and minifier.
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
Vite DevTools
A pure JavaScript implementation of Sass.
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Lightweight debugging utility for Node.js and the browser
Tool for transforming styles with JS plugins
The ultimate javascript content-type utility.
Version history
| Version | Published | License |
|---|---|---|
| 6.0.6 | 1 year ago | MIT |
| 7.0.6latest | 1 year ago | MIT |
| 7.0.5 | 1 year ago | MIT |
| 7.0.4 | 1 year ago | MIT |
| 7.0.3 | 6 years ago | MIT |
| 7.0.2 | 6 years ago | MIT |
| 7.0.1 | 6 years ago | MIT |
| 7.0.0 | 6 years ago | MIT |
| 6.0.5 | 8 years ago | MIT |
| 6.0.4 | 8 years ago | MIT |
| 6.0.3 | 8 years ago | MIT |
| 6.0.2 | 8 years ago | MIT |
| 6.0.1 | 8 years ago | MIT |
| 6.0.0 | 8 years ago | MIT |
| 5.1.0 | 9 years ago | MIT |
| 5.0.1 | 9 years ago | MIT |
| 5.0.0 | 9 years ago | MIT |
| 4.0.2 | 9 years ago | MIT |
| 4.0.0 | 10 years ago | MIT |
| 3.0.1 | 10 years ago | MIT |
Maintainers
Frequently asked questions
How do I install cross-spawn?
Run `npm install cross-spawn` to add cross-spawn to your npm project.
What license is cross-spawn released under?
cross-spawn is distributed under the MIT license.
How popular is cross-spawn?
cross-spawn has approximately 0 downloads per week and 3 known dependent packages.