tinyexec
A strong pick. 2nd of 8 shell and process tools.
tinyexec is a small, zero-dependency wrapper around Node's child_process that runs commands with async/await. It is the light pick in its category: Vitest and Nuxt tooling use it, and it is growing fast. execa still has more features.
Best for: Authors of libraries and CLI tools who want to run commands with no added dependencies and can live with a minimal API.
Scores
Overall7.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is a strong pick when a small dependency footprint matters, for example in libraries and CLIs, and major tooling has moved to it. execa remains the better default when you need rich features, safer defaults such as throwing on failure, and a longer track record. Its defaults and a few recent behaviour changes keep it below the top.
- peers execa: execa has similar downloads and far more dependents
- github.com/tinylibs/tinyexec: Minimal by design; points to zx for scripting
- dev.arabicstore1.workers.dev/web-https-github.com/nuxt/devtools/pull/944: Ongoing adoption by major tools
GPT-6.2 Sol: 7.6, likely 6.4 to 8.6
Choose tinyexec for a new Node.js CLI or build tool that needs a small, typed process runner with sync and async calls. Execa is the stronger default for complex subprocess I/O and debugging. Recent maintenance and adoption by established tools support the recommendation, while the open output bug and limited evidence on cross-platform workloads leave room for a lower score.
- github.com/tinylibs/tinyexec/blob/1.3.1/README.md: Shows a focused API for common process tasks.
- github.com/sindresorhus/execa: Documents the broader I/O and diagnostics available in Execa.
- github.com/tinylibs/tinyexec/issues/183: Open output-decoding issue affects confidence in text capture.
- github.com/lerna-lite/lerna-lite/pull/1316: A downstream CLI successfully switched from Execa.
- github commitsLastYear, npm latestVersion, peers: Active maintenance, with 1.3.1 as the current stable version.
Needed by many5.8
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Running child processes is common in build tools, CLIs, test runners and scripts, but most application code never does it. tinyexec is a general Node-level tool, not tied to one framework.
- category.job: Running commands from JS is a broad tooling need
- github.com/tinylibs/tinyexec: General child_process wrapper for any Node-compatible runtime
GPT-6.2 Sol: 5.5, likely 4.2 to 6.8
Running external programs is useful across Node.js CLIs, build tools, test tooling, and some backends. Node.js is widely used, but browser-only projects have little use for this API, and the survey does not measure how often developers need a dedicated process library.
- 2025.stateofjs.com/en-US/other-tools/#runtimes: About 90% of respondents to the runtime question reported using Node.js.
- raw.githubusercontent.com/tinylibs/tinyexec/1.3.1/package.json: The 1.3.1 package declares Node.js 18 or later.
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 handles the common cases well with a clean, typed API and no dependencies. On purpose it leaves out much of what execa offers, and its defaults (no throw, no trim) are easy to get wrong. Recent patch-level behaviour changes, a reverted fix and an open UTF-8 decoding bug show some rough edges.
- github.com/tinylibs/tinyexec: Feature list and stated limits of the sync API
- github.com/tinylibs/tinyexec/releases: 1.2.3 fix reverted in 1.2.4; command normalisation removed in 1.1.2
- github.com/tinylibs/tinyexec/issues: Open bugs on multibyte decoding, ENOENT and git execution
- github.tiyicn.workers.dev/vitest-dev/vitest/pull/6454: Migration needed stdio handling changes; does not trim newlines like execa
GPT-6.2 Sol: 7.5, likely 6.3 to 8.5
Version 1.3.1 covers ordinary process execution with documented, typed async and sync APIs, plus piping and cancellation on the async side. Agents can follow the short examples, but need to handle nonzero exits explicitly. One Linux benchmark found lower overhead than Execa for a basic spawn, while an open UTF-8 capture bug and fewer I/O helpers limit confidence in more demanding jobs.
- github.com/tinylibs/tinyexec/blob/1.3.1/README.md: Documents execution, exit handling, piping, and sync API limits.
- github.com/tinylibs/tinyexec/issues/183: User reports corruption when captured UTF-8 characters straddle chunks.
- shoppercove.com/blog/tinyexec-vs-execa: One Linux setup measured about 1.55 ms per trivial spawn versus 2.10 ms for Execa.
- github.com/sindresorhus/execa: Execa offers richer file and stream I/O, logging, and error diagnostics.
Holds up over time7.2
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is maintained by the tinylibs/e18e community, with 13 releases, 88 commits and 19 contributors, and the last push was this week. Big tools such as Vitest and Nuxt now depend on it, so the ecosystem is moving towards it. It has no known funding, and a few maintainers do most of the work.
- github commitsLastYear: 88 commits in the last year
- github releasesLastYear: 13 releases; latest 1.3.1 in Sep 2026
- dev.arabicstore1.workers.dev/web-https-github.com/nuxt/devtools/pull/944: Nuxt DevTools v4 migrated to it in Mar 2026
GPT-6.2 Sol: 7.4, likely 6.1 to 8.5
The repository logged 88 commits and 13 GitHub releases over the past year, with activity in November. A 1.2.3 regression broke lint-staged tests, and 1.2.4 reverted the relevant change within days. Contributors share development work, but recent release tags come from one maintainer, and the public funding file names one sponsorship recipient without showing funding levels.
- github commitsLastYear, releasesLastYear, pushedAt, contributors: 88 commits, 13 releases, 19 contributors, and a November 20 push.
- github.com/tinylibs/tinyexec/releases: Recent tags show one release author and fixes from multiple contributors.
- github.com/tinylibs/tinyexec/issues/139: lint-staged reported a regression and resumed upgrading after the revert.
- github.com/tinylibs/tinyexec/releases/tag/1.2.4: Records the revert after 1.2.3.
- github.com/tinylibs/tinyexec/blob/1.3.1/.github/FUNDING.yml: Lists one GitHub Sponsors recipient.
Used widely5.8
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Downloads rose about 8.4 times in a year, to 918M per 4 weeks, which is well above the 4.1 median. Most of those come in through Vitest, Nuxt, @antfu/ni and similar tools, not from direct choices. Direct use is smaller than execa's, and with no dependents count the estimate stays uncertain.
- npm downloadsLast4Weeks: 917.7M vs 109.0M a year ago (ratio ~8.4)
- medianDownloadsRatio: Median 4.1, so it is gaining ground fast
- github stars: Only 386 stars, which points to mostly transitive use
- dependents: null; no ecosyste.ms count
GPT-6.2 Sol: 4.5, likely 3.1 to 6.2
Four-week downloads grew 8.4× year over year, ahead of the catalog median of 4.1× and Execa’s 2.4×. Vitest and Astro pull in tinyexec, so their users and build systems can drive that growth without choosing it directly. The 386 stars, one Bluesky post, and missing ecosyste.ms dependent count leave direct adoption much less certain than the download total suggests.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 918 million downloads versus 109 million a year earlier, with faster growth than Execa.
- github stars, bluesky posts, dependents: 386 stars, one Bluesky post, and no ecosyste.ms dependent count.
- github.com/vitest-dev/vitest/blob/main/packages/vitest/package.json: Vitest declares tinyexec as a dependency.
- github.com/withastro/astro/blob/main/packages/astro/package.json: Astro declares tinyexec as a dependency.
Vouched for7.1
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
Several well-known projects chose it over execa: Vitest, Nuxt CLI, Nuxt DevTools and jiti. e18e lists it as an execa replacement. There are no survey results or independent benchmarks, and Nuxt test-utils' claim that it performs better rests on informal testing.
- github.tiyicn.workers.dev/vitest-dev/vitest/pull/6454: Vitest replaced execa with tinyexec
- github.com/nuxt/cli/pull/639: Nuxt CLI migrated to tinyexec
- e18e.dev/docs/replacements/execa: e18e recommends it as an execa replacement
- redirect.github.com/nuxt/test-utils/pull/939: Informal report of fewer deps and better CI performance
GPT-6.2 Sol: 7.6, likely 6.4 to 8.7
Vitest and Astro use it, and Lerna Lite switched from Execa once tinyexec added synchronous execution. An independent benchmark also measured a smaller bundle for a simple command runner. Those examples validate it for developer tooling, while the benchmark’s single setup leaves broader performance and reliability less certain.
- github.com/vitest-dev/vitest/blob/main/packages/vitest/package.json: A maintained test framework ships it as a dependency.
- github.com/withastro/astro/blob/main/packages/astro/package.json: Astro uses the 1.3.1 release line.
- github.com/lerna-lite/lerna-lite/pull/1316: Lerna Lite chose it for its sync API and smaller dependency tree.
- shoppercove.com/blog/tinyexec-vs-execa: A minimal Node.js bundle measured about 2.7 KB gzip versus 37 KB for Execa.
Safe8.3
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has zero dependencies, no advisories and an MIT licence, and it is published from GitHub Actions. There is no OpenSSF Scorecard data. pnpm's trust-policy check blocks versions from 1.2.1 on, which adds friction for teams that use strict supply-chain settings.
- npm dependencies: 0 runtime dependencies
- advisories total: No known advisories
- scorecard: No Scorecard data
- github.com/tinylibs/tinyexec/issues/136: pnpm trustPolicy no-downgrade blocks 1.2.1+
GPT-6.2 Sol: 8.6, likely 7.4 to 9.5
The MIT license, zero runtime dependencies, and staged npm publication with verifiable build provenance make it a low-risk dependency. OSV lists zero advisories in the snapshot, and Aikido documents a low-severity search-path flaw fixed in 1.1.2. The missing OpenSSF Scorecard and unverified number of authorized npm publishers limit confidence in the wider release controls.
- npm license, npm dependencies, advisories total, scorecard: MIT, zero runtime dependencies, zero OSV advisories, and no Scorecard result.
- raw.githubusercontent.com/tinylibs/tinyexec/1.3.1/.github/workflows/npm-publish.yml: The GitHub Actions release workflow stages packages for npm approval.
- deps.dev/npm/tinyexec: Reports verified SLSA provenance for npm version 1.3.1.
- intel.aikido.dev/cve/AIKIDO-2026-919131: Documents the low-severity flaw and identifies 1.1.2 as the fixed version.
- github.com/tinylibs/tinyexec/releases/tag/1.1.2: Release notes record the command-normalization fix.
Good
- It has zero runtime dependencies and ships TypeScript types, which keeps install size and supply-chain surface small.
- It covers the common needs: awaiting a result, iterating output line by line, piping, timeouts, AbortSignal, a sync variant and node_modules/.bin on PATH.
- Major tooling has adopted it: Vitest, Nuxt CLI, Nuxt DevTools and jiti, and e18e recommends it as an execa replacement.
- It is actively maintained, with 13 releases and 88 commits in the last year.
Bad
- A non-zero exit code does not throw by default, and output is not trimmed, which surprises users coming from execa.
- It has fewer features than execa: no template-string scripting, no file-input helpers, and a limited sync API.
- Some 2026 patch releases changed behaviour and one was reverted (1.2.3 was undone in 1.2.4), and there are open bugs about UTF-8 chunk decoding and ENOENT handling.
- Versions from 1.2.1 on are blocked by pnpm's trustPolicy no-downgrade setting unless users add an exclusion.
The numbers
- npm downloads, 4 weeks
- 918M ×8.4 in a year
- GitHub stars
- 386
- Commits, 12 months
- 88
- npm version
- 1.3.1 Sept 2026
- Versions, 12 months
- 11
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (tinylibs/tinyexec), npm (tinyexec), OSV and the OpenSSF Scorecard.