zx
A strong pick. 3rd of 8 shell and process tools.
zx is a Node.js scripting tool from the google GitHub organisation. It lets you write bash-style commands as JavaScript template literals, with escaping, piping, globbing and fetch included. It is still the most popular way to turn shell scripts into Node.js scripts, but it has had no release in 13 months and its downloads are growing more slowly than the category.
Best for: Teams on Node.js who want to replace growing bash scripts with JavaScript or TypeScript and keep shell syntax.
Scores
Overall7.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
zx is still the strongest choice for writing shell-style scripts in JavaScript on Node.js, with a mature API and wide runtime support. The 13 months without a release, a small core team and growth below the median keep it out of the 8+ range. Bun users have Bun Shell built in, and application code is better served by execa or tinyexec.
- npm latestPublishedAt: Last published 2025-10-19.
- pistack.xyz/posts/2026-08-17-nodejs-shell-scripting-zx-shelljs-execa-comparison: Recommends zx for bash-replacement scripts and execa for application code.
- peers: execa and tinyexec dominate process spawning; Bun Shell is growing fast.
GPT-6.2 Sol: 7.3, likely 6.0 to 8.4
zx is a strong choice for new automation that mixes real shell pipelines with JavaScript control flow. Execa is the stronger general-purpose pick for portable process execution, and Bun Shell is convenient for Bun-only teams. The year-long release gap and below-median download growth lower confidence in zx as a category default.
- google.github.io/zx/process-promise: Documents zx's shell pipeline and process API.
- github.com/sindresorhus/execa/blob/main/docs/bash.md: Execa supports shell-free execution and makes shell use optional.
- bun.com/docs/runtime/shell: Bun ships a cross-platform shell as part of its runtime.
- github releasesLastYear, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: No release in the past year and download growth below the catalog median.
Needed by many5.6
How many developers need a tool for this job?
Claude Opus 5.5: 5.5, likely 4.0 to 7.0
Many JS developers write build, release or automation scripts, but zx serves the scripting side of the category, not process spawning inside apps. That makes it narrower than execa or cross-spawn. It does work on Node.js, Bun and Deno.
- pistack.xyz/posts/2026-08-17-nodejs-shell-scripting-zx-shelljs-execa-comparison: Positions zx for replacing bash scripts and execa for application code.
- category job: Scripting is a large subset of running commands from JS.
GPT-6.2 Sol: 5.6, likely 4.4 to 6.8
Build, release, and CI automation give zx a role across many kinds of JavaScript projects, and it supports several major runtimes. Its shell-first API is most useful when scripts need to coordinate multiple commands. Runtime surveys give a sense of the potential audience, while the share that needs dedicated scripting tools is harder to estimate.
- 2025.stateofjs.com/en-US/other-tools: Node.js leads the runtime survey, with Bun and Deno also represented.
- google.github.io/zx/setup: Supports Node.js, Bun, and Deno on Linux, macOS, and Windows.
- raw.githubusercontent.com/vuejs/create-vue/main/package.json: Uses zx for snapshots, tests, and releases.
Helps a lot7.8
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
zx has a rich, ergonomic API: piping (including many-to-one and unpipe), nothrow, timeouts, kill handling, sync mode and a script runner. Its types and documentation are good. Its limits are that it depends on the host shell, Windows support is uneven, cd is global and output is buffered. Bun Shell's builtins are faster and cross-platform, but only on Bun.
- github.com/google/zx/releases: The 8.x releases added piping features and hardened kill() and ps on Windows.
- pkgpulse.com/guides/bun-shell-vs-zx-2026: Lists host-shell dependency, Windows gaps and per-command overhead.
- pistack.xyz/posts/2026-08-17-nodejs-shell-scripting-zx-shelljs-execa-comparison: Lists global cd, buffered output and throw-by-default.
GPT-6.2 Sol: 8.0, likely 6.9 to 9.0
Version 8.8.5 makes shell pipelines, streaming, timeouts, and exit errors easy to handle from JavaScript. The built-in types and documented examples give coding agents a clear API to follow. Shell behavior still varies across systems, and Wasp had to bypass `json()` because it mixes stdout and stderr. Recent performance and coding-agent accuracy measurements are sparse.
- google.github.io/zx/process-promise: Documents typed process control, streaming, piping, and timeouts.
- google.github.io/zx/shell: Documents Bash and PowerShell selection.
- github.com/wasp-lang/wasp/pull/4711: Wasp switched to parsing stdout directly after `json()` failed.
- tduyng.com/blog/scripting-tools: A small 2025 benchmark found similar timings for zx and Execa.
- npm hasTypes: Ships TypeScript declarations.
Holds up over time5.9
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
Commits continued through November 2026 (52 in the last year) and only 14 issues are open, so the project is not abandoned. But nothing has been released for 13 months, and almost all the work comes from two maintainers. A v9 is only mentioned as tentative. The project lives under the google organisation, but no clear corporate funding is visible.
- github releasesLastYear: No releases in the last year; latest is 8.8.5 from October 2025.
- github.com/google/zx/commits/main: Commits by antongolub and antonmedv through 2026-11-05, mostly chores and docs.
- scorecard Maintained: Scores 5 of 10.
GPT-6.2 Sol: 5.7, likely 4.2 to 7.2
The repository saw 52 commits in the past year, and maintainers discussed publishing changes in November 2026. Stable releases have stalled since October 2025 while Execa and Dax have shipped new versions. The v8 upgrade changed logging defaults and removed the SSH helper, with a migration guide covering both. Future release cadence and long-term staffing are uncertain.
- github commitsLastYear, releasesLastYear, latestRelease: 52 commits and zero releases in the last year.
- peers execa and dax latestPublishedAt: Both published stable updates in late 2026.
- github.com/google/zx/pull/1534: November discussion documents plans for trusted publishing.
- google.github.io/zx/migration-from-v7: Documents changes to logging and removal of the SSH helper.
Used widely5.1
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
zx has about 11.7M downloads in 4 weeks and 2,228 dependent repos. Those numbers are small next to execa and cross-spawn but come mostly from direct choices. Its 2.35x yearly ratio is below the 4.1x median, so it is losing relative ground. Its 45.9k stars are the most of any dedicated tool in the category.
- npm downloadsLast4Weeks: 11.68M now vs 4.96M a year ago, a ratio of 2.35.
- dependents: 2,228 repos and 1,354 packages, far below execa's 932k.
- github stars: 45,863 stars.
GPT-6.2 Sol: 4.2, likely 2.9 to 5.6
Ecosyste.ms found 2,228 dependent repositories and 1,354 npm packages, far below Execa and ShellJS despite zx's roughly 46,000 stars. Four-week downloads rose from 5.0 million to 11.7 million, or 2.35 times, below the catalog's 4.1 times median. The indexed dependents show thousands of projects using zx, while private scripts and automated reinstalls make current direct adoption hard to estimate.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 2.35 times against a 4.1 times baseline.
- dependents, github stars, peers dependentRepos: High star count alongside far fewer indexed dependents than Execa or ShellJS.
- bluesky posts and top: Eight posts, including a developer who uses TypeScript for scripting and likes zx.
Vouched for6.4
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
Independent 2026 comparisons, in English and Japanese, recommend zx as the default for Node.js scripting. It also has a large star count and steady mentions from developers. There are no survey satisfaction numbers specific to zx, and few named production users. Hacker News and Bluesky attention is low.
- pkgpulse.com/guides/bun-shell-vs-zx-2026: Calls zx the practical choice for Node.js teams.
- scrapbox.io/uki00a/dax,_Bun_Shell,_zx%E3%81%AE%E6%AF%94%E8%BC%83: Japanese comparison that notes zx has the widest runtime support.
- bluesky posts: Only 8 posts, though users recommend it.
GPT-6.2 Sol: 6.7, likely 5.3 to 7.7
Vue's scaffolder uses zx for testing and releases, and VS Code lists it in its build tooling. Wasp uses it to drive deployment CLIs and documented a workaround for output parsing. These are concrete examples of use in maintained projects. Broad satisfaction data and recent independent benchmarks are scarce.
- raw.githubusercontent.com/vuejs/create-vue/main/package.json: Vue's scaffolder runs three repository tasks with zx.
- github.com/microsoft/vscode/blob/main/build/package.json: VS Code's build tooling declares zx 8.8.5.
- github.com/wasp-lang/wasp/pull/4711: Wasp documents its deployment CLI use and parsing workaround.
- tduyng.com/blog/scripting-tools: Independent 2025 comparison covers zx, Execa, Dax, and ShellJS.
Safe7.4
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
zx installs no npm dependencies, uses the Apache-2.0 licence and has an OpenSSF Scorecard of 7.1. Its two moderate advisories (dotenv env injection, and node_modules deletion with --prefer-local) both have fixed versions, and the 8.8.x releases hardened it against command injection. Code review is weak (Scorecard 2), and because it runs commands through a shell, interpolating untrusted input is risky.
- github.com/advisories/GHSA-w87r-vg9q-crqm: Moderate advisory, patched in 8.8.5.
- scorecard: Overall 7.1; Code-Review 2; Fuzzing 0.
- npm dependencies: 0 dependencies; utilities are bundled.
GPT-6.2 Sol: 7.7, likely 6.5 to 8.8
The Apache-2.0 package installs no separate npm dependencies and bundles third-party code. Both moderate advisories were fixed by public disclosure, and 8.8.5 includes both fixes. The release workflow publishes through Google's npm proxy with provenance. The 7.1 Scorecard shows weak code review and no detected fuzzing, and the number of people who can publish independently is unclear.
- npm dependencies and license: Zero separately installed dependencies and a permissive Apache-2.0 licence.
- scorecard checks: 7.1 overall, 2 for code review, and 0 for fuzzing.
- google.github.io/zx/setup: Describes how third-party code is bundled.
- github.com/advisories/GHSA-w87r-vg9q-crqm: The file cleanup issue was fixed in 8.8.5 before advisory publication.
- github.com/advisories/GHSA-qwp8-x4ff-5h87: The dotenv issue was fixed in 8.3.2 before advisory publication.
- github.com/google/zx/blob/8.8.5/.github/workflows/publish.yml: GitHub Actions publishes with provenance through the Google registry proxy.
Good
- The $`cmd` template literal escapes values you interpolate, and you can run commands in parallel with Promise.all.
- It includes everything a script needs: fetch, glob, chalk, YAML, minimist, retry, spinner and a CLI runner for .mjs and markdown scripts.
- It runs on Node.js, Bun and Deno, ships its own types and installs no npm dependencies.
- Its API is mature and well documented, and AI coding agents write correct code for it.
Bad
- The last release (8.8.5) came out in October 2025, so fixes made on main since then are not published.
- It runs commands through the host shell, so behaviour on Windows differs unless you use Git Bash or WSL, and it is unsafe with untrusted input.
- It is heavier than execa or tinyexec when you only need to spawn a process from application code.
- Its downloads grew 2.35x in a year, below the 4.1x median, so it is losing share to Bun Shell and lighter tools.
The numbers
- npm downloads, 4 weeks
- 12M ×2.4 in a year
- GitHub stars
- 46k
- Commits, 12 months
- 52
- npm version
- 8.8.5 Oct 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 2 of 2 ever
- OpenSSF Scorecard
- 7.1 out of 10, Nov 2026
- Licence
- Apache-2.0
Read on 21 November 2026 from GitHub (google/zx), npm (zx), OSV and the OpenSSF Scorecard.