# nano-spawn: 6.2 out of 10

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

nano-spawn is a small Promise wrapper around Node's child_process with no dependencies, made by the team behind execa. It is well made and was just updated to v3, but few projects choose it directly, and it is losing ground. tinyexec now has the momentum and the endorsements for small installs, and execa does more.

**Best for:** Library authors on Node 22+ who want a tiny, dependency-free spawn wrapper with execa-style errors and line iteration.

## Scores

- **Overall: 6.2** (likely 5.1 to 7.2)
  - Claude Opus 5.5 (5.5): It is a solid, safe, minimal wrapper that its maintainers improved a lot in v3. Still, tinyexec fills the same small-install niche, with far more momentum and endorsement from e18e and lint-staged, and execa is the better pick when you need features. nano-spawn's growth lags well behind the median. It is a reasonable choice, but rarely the best one.
  - GPT-6.2 Sol (6.8): Nano-spawn is a good choice for a modern Node.js CLI or library that needs local binary lookup and typed subprocess errors with zero runtime dependencies. Execa covers more workflows, and tinyexec has stronger recent adoption among lightweight alternatives. Version 3 fixes several real bugs, but its short track record and the project's slower relative growth keep the range wide.
- **Needed by many: 4.9** (likely 3.9 to 6.0)
  - Claude Opus 5.5 (5.0): Many Node developers sometimes need to run a subprocess, mostly for tooling, CLIs and build scripts. nano-spawn aims at the smaller group that wants a minimal wrapper, mainly library authors. It runs on Node only and needs Node 22+.
  - GPT-6.2 Sol (4.8): Running external programs comes up in CLI tools, build automation, and some server applications. Nano-spawn targets async subprocesses on Node.js 22 and newer. The runtime survey shows a large pool of potential users, but it does not measure how many need a subprocess library.
- **Helps a lot: 7.0** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.5): It is a careful, typed design with good errors, line iteration, piping, preferLocal and strong Windows handling. v3 fixed many correctness problems with cancellation, stream errors, hangs and memory growth. It deliberately leaves out sync execution, IPC, binary I/O and template strings, which execa covers. lint-staged reported problems with spawning tasks when it left nano-spawn, which keeps the range open.
  - GPT-6.2 Sol (7.4): The typed API covers common async jobs with readable errors, line streaming, and piping. Version 3 fixes several Windows, cancellation, and output bugs, though batch quoting still has limits. Execa covers more advanced process control and I/O. The examples are straightforward, but independent evidence on v3 performance and agent-written code is sparse.
- **Holds up over time: 6.1** (likely 4.7 to 7.3)
  - Claude Opus 5.5 (6.0): The execa maintainers keep it up, and a major release came out a week ago. Activity is low but steady: 13 commits and 2 releases in a year. There is no visible funding, it has only 4 contributors, and losing lint-staged weakens the reason to keep investing in it. Three major versions in about 18 months means upgrades often break something.
  - GPT-6.2 Sol (6.2): The November v3 release and small issue backlog show active upkeep, though the project logged 13 commits and two releases over the year. Two listed maintainers and a sponsorship link provide some continuity, while release coverage and funding levels are unclear. The v3 migration changes both the Node.js minimum and string input, and two downstream projects recently chose tinyexec.
- **Used widely: 3.4** (likely 2.2 to 4.8)
  - Claude Opus 5.5 (3.5): It gets 20.9M downloads in 4 weeks, but most come from lint-staged 16.x installs that are still pinned, not from direct choices. The year-over-year ratio is 1.21, far below the 4.1 median, while tinyexec and execa grew much faster. With 596 stars and almost no social mentions, direct use is likely in the low thousands of projects.
  - GPT-6.2 Sol (3.3): Downloads rose from 17.3 million to 20.9 million per four weeks, a 1.21× increase against the 4.1× catalog median and about 8.4× for tinyexec. Known downstream packages and repeated CI installs can multiply that volume. Stars and indexed dependents suggest much smaller direct adoption, and the missing comparable repository count keeps the estimate wide.
- **Vouched for: 3.7** (likely 2.5 to 5.3)
  - Claude Opus 5.5 (3.0): Its largest adopter, lint-staged, used it in v16 and then moved to tinyexec, citing problems with spawning tasks. The e18e replacement guide points to tinyexec rather than nano-spawn. Most of the praise comes from the execa docs, which are written by the same maintainers. No independent benchmarks or surveys cover it.
  - GPT-6.2 Sol (4.4): bpmn.io's release tool declares nano-spawn 2.1 as a dependency. lint-staged adopted it to cut dependencies, then moved to tinyexec after task-spawning problems. WXT independently chose tinyexec for its smaller footprint. Those are real deployment decisions, but independent benchmarks and downstream evidence for v3 are sparse.
- **Safe: 8.3** (likely 7.2 to 9.1)
  - Claude Opus 5.5 (8.5): It has no dependencies, no known advisories and an MIT licence. A small, experienced team publishes it. There is no OpenSSF Scorecard data to confirm release practices, so the score is not higher.
  - GPT-6.2 Sol (8.1): The MIT license, zero runtime dependencies, and clean advisory record keep dependency risk low. ReversingLabs reported no malware or known vulnerabilities in its scan of v3, and the project has a private reporting channel. Two npm maintainers are listed, but the bundle has no OpenSSF Scorecard and release provenance remains unverified.

## Good

- It has no dependencies and a small install size, so it suits libraries and serverless code.
- It handles Windows carefully, including .cmd/.bat quoting, PATHEXT and executable lookup.
- Its API feels like execa: SubprocessError with exit codes, `for await` over output lines, `.pipe()`, and preferLocal.
- The execa team maintains it, and v3 fixed many edge cases with cancellation, streams and hangs.

## Bad

- lint-staged, its biggest user, moved to tinyexec, so most of its downloads come from older lockfiles.
- It has no synchronous mode, no template-string syntax, no IPC and no binary output; for those you need execa.
- v3 requires Node 22 and removed the `{string}` stdin form, the third major release in about 18 months.
- It runs on Node only, and there is little independent write-up or community discussion of it.

## The numbers

- Downloads, 4 weeks: 21M
- In a year: +21%
- GitHub stars: 596
- Commits, 12 months: 13
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/sindresorhus/nano-spawn
- npm: https://www.npmjs.com/package/nano-spawn

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.
