# cross-spawn: 5.1 out of 10

Reasonable, with limits. 8th of 8 in [Shell and process tools](https://elestia.ai/opensource/shell/index.md).

cross-spawn is a small drop-in replacement for Node's spawn and spawnSync that fixes Windows problems with PATHEXT, shebangs and argument escaping. It is still a core part of the npm tree, but it has had no release since November 2024. Requests to help maintain it and a Node 24 deprecation warning have gone unanswered, so execa or tinyexec is the better pick for new code.

**Best for:** Low-level tool authors who need spawn's exact API to behave correctly on Windows and nothing more.

## Scores

- **Overall: 5.1** (likely 4.0 to 6.2)
  - Claude Opus 5.5 (4.0): It works and is everywhere, but it is a low-level primitive that has stalled, with an unfixed Node 24 warning and unanswered maintenance requests. For new work, execa (which wraps it) or tinyexec does the same job with a better API and active maintenance. Keep it where it already runs. Pick it directly only if you need spawn's exact signature.
  - GPT-6.2 Sol (6.1): cross-spawn still earns its place when a Node tool needs Windows compatibility and the native ChildProcess interface. Execa is the stronger default for new projects that want promise-based results, pipelines, and active maintenance. The range reflects how much the choice depends on the exact Windows commands a project runs and whether open fixes reach npm.
- **Needed by many: 4.1** (likely 3.1 to 5.2)
  - Claude Opus 5.5 (4.0): Running child processes is a common need, but this project only does the low-level, cross-platform part of it. Mostly CLI and tooling authors who must support Windows need it directly. Most app developers reach it through execa or other tools, not by choosing it.
  - GPT-6.2 Sol (4.2): Running external programs is common in Node build tools, CLIs, and automation. The main reason to choose cross-spawn is to make those calls work on Windows. State of JavaScript shows broad Node use, but gives little indication of how many developers need that compatibility.
- **Helps a lot: 6.0** (likely 4.9 to 7.1)
  - Claude Opus 5.5 (5.0): It does its narrow job well and is battle-tested on Windows. Its shebang support is limited, and it ships no types of its own. It has no promise API, output capture or error helpers, which execa and tinyexec provide. The unfixed DEP0190 warning on Node 24 is a visible flaw today.
  - GPT-6.2 Sol (7.0): Version 7.0.6 keeps the familiar Node API and has short examples that are easy for developers and coding agents to follow. It covers common Windows launches, though users report a Node 24 warning in shell mode and Windows escaping edge cases. Execa offers promises, richer errors, and pipelines. Comparative performance and coding-agent accuracy are lightly evidenced.
- **Holds up over time: 3.9** (likely 2.7 to 5.1)
  - Claude Opus 5.5 (3.0): There have been no releases in two years and only five commits in the last year. An April 2026 offer to help maintain it got no reply, and an issue about having a sole publisher is open. Because so much depends on it, someone would likely fork or take it over, but nobody has committed to that.
  - GPT-6.2 Sol (4.7): The API has been stable for years, but five commits in the last year and a two-year npm release gap put it behind Execa for maintenance. A community offer to help maintain the package remains open, and Execa 10 moved away from the dependency. The small API could age well, but the next release and the project’s maintenance capacity are uncertain.
- **Used widely: 7.4** (likely 6.2 to 8.5)
  - Claude Opus 5.5 (7.0): It has 1.9M dependent repos and 1.4B downloads per 4 weeks, but almost all of that comes in through execa, ESLint-era tooling and similar packages. Its download ratio of about 3.1 is below the 4.1 median, so it is losing ground, while tinyexec grows much faster. Few new projects choose it directly.
  - GPT-6.2 Sol (7.8): The collector found 1.92 million dependent repositories and 14,155 dependent packages, with more observed repositories than Execa or ShellJS. Four-week installs grew 3.15× year over year, below the catalog median of 4.1×, which points to a loss of relative ground. Automated and transitive installs make the 1.40 billion total a poor estimate of how many projects choose it directly.
- **Vouched for: 6.6** (likely 5.1 to 7.7)
  - Claude Opus 5.5 (6.0): Major tools such as execa depend on it, which is strong practical validation of how it behaves. It has no current survey presence, Hacker News or Bluesky discussion, or independent write-ups. Much of that endorsement is old.
  - GPT-6.2 Sol (7.2): cross-env uses it to launch commands, Chromium DevTools vendors it, and a Debian packaging request cites a downstream need. These are concrete signs of trust in tooling. Recent independent comparisons cover the API trade-offs, while evidence on satisfaction and comparative performance remains thin.
- **Safe: 5.6** (likely 3.9 to 6.9)
  - Claude Opus 5.5 (6.0): It has one HIGH ReDoS advisory (CVE-2024-21538), which was fixed in 7.0.5 and 6.0.6, and nothing new since. It has only three small dependencies and an MIT licence. However, its Scorecard is 3.6, one person publishes it with no branch protection, and maintainers are unresponsive. That would slow any future fix in a package with huge transitive reach.
  - GPT-6.2 Sol (5.2): The MIT licence and three runtime dependencies keep the dependency footprint small. The one published high-severity advisory had a 7.x fix at disclosure and was backported to 6.x. The 3.6 Scorecard, reported single npm publisher, and open Windows argument-escaping reports limit confidence in release safeguards and in handling untrusted arguments.

## Good

- It has the same signature as child_process.spawn and spawnSync, so you can swap it in without changing your code.
- It handles Windows PATHEXT lookup, command shims and argument escaping, which plain spawn gets wrong.
- It is very widely used: execa and many CLI tools depend on it, so its behaviour is well tested.
- It is small, MIT licensed and has only three tiny dependencies.

## Bad

- There has been no release since 7.0.6 in November 2024, and maintainers have not answered issues or offers of help.
- On Node 24 it triggers the DEP0190 deprecation warning about passing args with shell: true, and no fix has been released.
- It has no bundled types and no promise API. It is a raw spawn wrapper, while execa and tinyexec give you ergonomic results and errors.
- One person publishes it, and its OpenSSF Scorecard is weak (3.6), with no branch protection or security policy.

## The numbers

- Downloads, 4 weeks: 1.4B
- In a year: ×3.1
- GitHub stars: 1.2k
- Commits, 12 months: 5
- Last npm release: Nov 2024
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/moxystudio/node-cross-spawn
- npm: https://www.npmjs.com/package/cross-spawn

Many packages install it, so most downloads are not a direct choice.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
