nano-spawn
Reasonable, with limits. 6th of 8 shell and process tools.
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
Overall6.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- npm downloadsSame4WeeksYearAgo: It grows far below the median rate.
- github.com/sindresorhus/nano-spawn/releases: v3 brings fixes and breaking changes.
- github.com/lint-staged/lint-staged/blob/main/package.json: Its main adopter switched to tinyexec.
GPT-6.2 Sol: 6.8, likely 5.7 to 7.9
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.
- github.com/sindresorhus/nano-spawn/releases/tag/v3.0.0: Current stable release improves common process operations and requires Node.js 22.
- github.com/sindresorhus/execa/blob/main/docs/small.md: Documents the trade-off between nano-spawn's footprint and Execa's larger feature set.
- github.com/wxt-dev/wxt/pull/2544: A downstream team chose the smaller tinyexec package.
- github.com/lint-staged/lint-staged/releases/tag/v16.3.0: A separate downstream team moved to tinyexec after using nano-spawn in a release.
- github commitsLastYear, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Modest maintenance volume and download growth below the catalog baseline.
Needed by many4.9
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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+.
- github.com/sindresorhus/nano-spawn: The README recommends it where package size matters, such as libraries or serverless code.
- github.com/sindresorhus/nano-spawn/releases: v3 requires Node.js 22.
GPT-6.2 Sol: 4.8, likely 3.7 to 6.0
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.
- 2025.stateofjs.com/en-US/other-tools/#runtimes: 10,062 of 11,141 respondents to the runtime question reported using Node.js.
- github.com/sindresorhus/nano-spawn: Documents an async process API for commands, output, and pipelines.
- github.com/sindresorhus/nano-spawn/releases/tag/v3.0.0: Version 3 raised the minimum runtime to Node.js 22.
Helps a lot7.0
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- github.com/sindresorhus/nano-spawn/releases: v3.0.0 lists many fixes for cancellation, piping, hangs and Windows quoting.
- github.com/sindresorhus/nano-spawn: Feature list, and the limits it lists compared with execa.
- raw.githubusercontent.com/sindresorhus/execa/HEAD/docs/small.md: Execa's docs say nano-spawn lacks template strings, sync execution and IPC.
- npm hasTypes: Ships TypeScript types.
GPT-6.2 Sol: 7.4, likely 6.2 to 8.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.
- github.com/sindresorhus/nano-spawn: Documents typed errors, streaming, pipelines, and Windows batch limitations.
- github.com/sindresorhus/nano-spawn/releases/tag/v3.0.0: Fixes cancellation timing, batch argument handling, stream hangs, and pipeline behavior.
- github.com/sindresorhus/execa/blob/main/docs/small.md: The shared maintainers document Execa's broader I/O and process-control features.
- github.com/lint-staged/lint-staged/releases/tag/v16.3.0: A downstream maintainer reported task-spawning problems on an earlier version.
Holds up over time6.1
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 4.5 to 7.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.
- github commitsLastYear: 13 commits in the last year.
- github latestRelease: v3.0.0 released 2026-11-14.
- github contributors: 4 contributors.
- github.com/lint-staged/lint-staged/blob/main/package.json: lint-staged now depends on tinyexec, not nano-spawn.
GPT-6.2 Sol: 6.2, likely 4.8 to 7.6
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.
- github commitsLastYear, releasesLastYear, openIssues, closedIssues, contributors: 13 commits, two releases, two open issues, 32 closed issues, and four contributors.
- raw.githubusercontent.com/sindresorhus/nano-spawn/v3.0.0/package.json: The package links to GitHub sponsorship.
- github.com/sindresorhus/nano-spawn: The project lists two maintainers.
- github.com/sindresorhus/nano-spawn/releases/tag/v3.0.0: The active release fixes process bugs and documents two breaking changes.
- github.com/lint-staged/lint-staged/releases/tag/v16.3.0: lint-staged moved to tinyexec after task-spawning problems.
- github.com/wxt-dev/wxt/pull/2544: WXT moved to tinyexec for its smaller footprint.
Used widely3.4
How many use it, and is that growing?
Claude Opus 5.5: 3.5, likely 2.5 to 4.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.
- npm downloadsLast4Weeks: 20.9M, against 17.3M a year ago: a ratio of 1.21 against a 4.1 median.
- peers tinyexec downloadsLast4Weeks: tinyexec has 918M and grew about 8x.
- bluesky posts: 0 Bluesky posts and 0 HN stories.
- app.unpkg.com/lint-staged@16.1.6/files/MIGRATION.md: lint-staged 16 brought nano-spawn into many dev setups.
GPT-6.2 Sol: 3.3, likely 1.9 to 5.1
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads rose about 21%, well below the catalog growth baseline.
- github stars, dependents, hackerNews stories, bluesky posts: 596 stars, no comparable dependent count, and no matched posts or stories.
- peers tinyexec and execa: Both have much higher install volume and faster year-over-year download growth.
- secure.software/npm/packages/nano-spawn: ReversingLabs indexes 172 dependents, with different coverage from the peer data.
- github.com/lint-staged/lint-staged/releases/tag/v16.3.0: Past lint-staged releases pulled nano-spawn in transitively.
Vouched for3.7
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
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.
- github.com/lint-staged/lint-staged/blob/main/package.json: lint-staged now uses tinyexec.
- google.18789066745.workers.dev/e18e/module-replacements/blob/main/docs/modules/execa.md: The e18e guide recommends tinyexec as the replacement for execa.
- raw.githubusercontent.com/sindresorhus/execa/HEAD/docs/small.md: Its maintainers' own recommendation.
GPT-6.2 Sol: 4.4, likely 2.9 to 6.0
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.
- github.com/bpmn-io/release/blob/main/package.json: bpmn.io's release tooling declares nano-spawn ^2.1.0.
- github.com/lint-staged/lint-staged/releases/tag/v16.3.0: Records both the adoption and later replacement.
- github.com/wxt-dev/wxt/pull/2544: WXT's merged comparison reports 45 kB for its nano-spawn version and 23 kB for tinyexec.
Safe8.3
How safe is it to depend on?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
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.
- npm dependencies: 0 dependencies.
- advisories total: No advisories.
- scorecard: No Scorecard data.
- npm license: MIT.
GPT-6.2 Sol: 8.1, likely 6.8 to 9.2
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.
- npm dependencies, npm license, advisories total, scorecard: Zero runtime dependencies, MIT license, zero OSV advisories, and no Scorecard result.
- secure.software/npm/packages/nano-spawn: Independent v3 scan found no malware or known vulnerabilities.
- npmjs.com/package/nano-spawn?activeTab=dependencies: npm lists two maintainers.
- github.com/sindresorhus/nano-spawn/security/policy: Provides a private GitHub vulnerability reporting link.
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
- npm downloads, 4 weeks
- 21M +21% in a year
- GitHub stars
- 596
- Commits, 12 months
- 13
- npm version
- 3.0.0 Nov 2026
- Versions, 12 months
- 2
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (sindresorhus/nano-spawn), npm (nano-spawn), OSV and the OpenSSF Scorecard.