ShellJS
Reasonable, with limits. 7th of 8 shell and process tools.
ShellJS is a mature, portable JavaScript version of Unix commands like cp, rm, mkdir, sed and grep. It is still useful for cross-platform build scripts, but its API is synchronous and string-based, it ships without its own types, and it has had no release since May 2025. For new work, zx or execa are better choices, and so is Node's own fs module.
Best for: Teams that keep build or npm lifecycle scripts that must run cp/rm/sed the same way on Windows, macOS and Linux.
Scores
Overall5.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
ShellJS still works and is portable for file commands in build scripts. But maintenance has slowed, there are no bundled types or modern async API, and its share of new projects is falling fast. For new projects, zx gives better scripting and execa or tinyexec give better process running, while native fs covers most file work. It is fine to keep where it already runs, but it is a weak pick for new work.
- npm downloads ratio vs medianDownloadsRatio: 1.25x vs a 4.1x median
- peers execa/zx/tinyexec: Peers are more active and growing faster
- github.com/shelljs/shelljs/releases: Last release v0.10.0, May 2025
GPT-6.2 Sol: 5.7, likely 4.6 to 6.8
ShellJS is a reasonable choice when familiar file and text commands simplify a short Node.js script. For new projects centered on subprocesses, Execa has stronger async execution, streaming, cancellation, and error reporting, along with a more recent release. ShellJS's slow release cadence and open Windows regressions lower the recommendation, and the value of its built-in commands varies by workload.
- raw.githubusercontent.com/shelljs/shelljs/v0.10.0/README.md: Portable file and text commands with synchronous defaults
- github.com/sindresorhus/execa/blob/main/docs/bash.md: Execa documents streaming, termination, and structured process errors
- github.com/shelljs/shelljs/issues/1227: A core file operation has an open Windows regression
- npm latestPublishedAt and peers execa latestPublishedAt: ShellJS last published in May 2025 and Execa in October 2026
Needed by many5.4
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many JS developers write build, release or CI scripts that need shell commands. ShellJS covers the cross-platform file-command side of that job, which is a large group but not most projects. Node's own fs APIs now cover much of the same ground.
- pistack.xyz/posts/2026-08-17-nodejs-shell-scripting-zx-shelljs-execa-comparison: Places ShellJS in portable build and npm lifecycle scripts
- dependents: 230k repos depend on it, which shows wide past need
GPT-6.2 Sol: 4.7, likely 3.6 to 5.9
Running external programs is useful in build, release, and test automation across many JavaScript projects. ShellJS mainly serves the narrower group writing Node.js scripts that mix subprocesses with Unix-style file and text operations. The developer survey shows how common build steps are, but leaves the share writing these scripts uncertain.
- 2025.stateofjs.com/en-US/usage: Build steps are common among survey respondents
- raw.githubusercontent.com/shelljs/shelljs/v0.10.0/README.md: Node.js command library for Windows, Linux, and macOS
Helps a lot5.7
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Its built-in commands are reliable and portable. Version 0.10 added grep context options and a safer cmd() for running programs. Process running is its weak side: exec() takes a single string with no quoting, there are no structured results, and async support is limited. There are no bundled types. zx and execa do the job of running programs clearly better.
- github.com/shelljs/shelljs/releases: v0.9 added cmd() and fast-glob; v0.10 added grep -A/-B/-C
- pistack.xyz/posts/2026-08-17-nodejs-shell-scripting-zx-shelljs-execa-comparison: Calls exec string-based with manual quoting, and rates it weaker on async
- npm hasTypes: No bundled TypeScript types
GPT-6.2 Sol: 6.3, likely 5.2 to 7.4
ShellJS 0.10.0 documents its file and text commands clearly, and synchronous subprocess calls expose exit codes, stdout, and stderr. Most commands block, and TypeScript users need separate declarations. Users report that Windows path handling regressed for wildcard matching and recursive `find()`. A small scripting benchmark found ShellJS slower than Execa and zx, and evidence on performance across workloads and on code generated by agents remains thin.
- raw.githubusercontent.com/shelljs/shelljs/v0.10.0/README.md: Synchronous defaults, subprocess results, and command examples
- npmjs.com/package/%40types/shelljs?activeTab=versions: DefinitelyTyped ships matching 0.10.0 declarations
- github.com/shelljs/shelljs/issues/1246: User reports Windows backslash wildcard regression
- github.com/shelljs/shelljs/issues/1227: User CI reproduces Windows recursive find failure on 0.10.0
- ekino.fr/publications/scripting-tools-a-node-js-friendly-alternative-to-makefile: Independent short-script benchmark favored Execa and zx
Holds up over time4.7
Will it still be a good choice in two years?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
The project is not archived and saw a push in October 2026. But it had only 19 commits and no releases in the last year, and has 41 open PRs. A small volunteer team with no visible funding maintains it. The ecosystem is moving towards zx, execa, tinyexec and native fs, so it is likely to stay in maintenance mode.
- github commitsLastYear / releasesLastYear: 19 commits, 0 releases in the last year
- npm latestPublishedAt: Last publish 2025-05-09
- scorecard Maintained: Maintained check scores 6/10
- github openPullRequests: 41 open PRs
GPT-6.2 Sol: 4.8, likely 3.5 to 6.3
ShellJS had 19 commits in the past year, and a maintainer responded to Windows bug reports. The last release was in May 2025, a proposed Windows glob fix remains open, and Execa published in October 2026. One maintainer led the latest release, and an old public roadmap and limited visibility into funding and release capacity make the two-year outlook uncertain.
- github commitsLastYear and latestRelease: 19 commits and no release in the past year
- peers execa: 103 commits and an October 2026 npm release
- github.com/shelljs/shelljs/releases/tag/v0.10.0: One maintainer led and published the current GitHub release
- github.com/shelljs/shelljs/issues/1246: Maintainer followed up on the Windows regression
- github.com/shelljs/shelljs/pull/1252: Windows glob fix proposed in April 2026 remains open
- github.com/shelljs/shelljs/wiki/Roadmap: Published roadmap was last edited in 2016
Used widely6.2
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has 47.7M downloads per 4 weeks and 230k dependent repos, so its install base is huge. Much of that comes from older tools that pull it in. Growth is 1.25x against a 4.1x median, far behind execa (2.4x), tinyexec (8.4x) and zx (2.4x), so its share of new projects is falling.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 47.7M vs 38.3M, a 1.25x ratio
- medianDownloadsRatio: The 4.1 median shows it is losing ground
- dependents repos: 230k repos, third behind cross-spawn and execa
- bluesky posts / hackerNews stories: Zero current social attention
GPT-6.2 Sol: 6.3, likely 5.1 to 7.5
ecosyste.ms found about 230,000 dependent repositories and 33,000 dependent packages, a substantial installed base that trails Execa. Four-week downloads rose from 38.3 million to 47.7 million, a 1.25× increase against the 4.1× catalog median and slower growth than Execa or zx. That points to a loss of relative ground. Repeat installs and indirect installs through tools such as shx make fresh direct adoption difficult to estimate.
- dependents: 230,048 repositories and 32,986 npm packages
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: ShellJS grew 1.25× against the 4.1× catalog median
- peers execa and zx: Execa has 932,013 detected repositories and both peers grew over 2.3×
- github stars and bluesky posts: 14,400 cumulative stars and zero recent Bluesky repository links in the snapshot
- github.com/shelljs/shx/blob/main/package.json: shx installs ShellJS as a runtime dependency
Vouched for5.7
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
Many long-standing projects and build tools have used it for years, and independent comparisons still recommend it for portable build scripts. There are no current survey signals and no recent social attention. Most endorsements are old.
- pistack.xyz/posts/2026-08-17-nodejs-shell-scripting-zx-shelljs-execa-comparison: 2026 comparison recommends it only for portable build scripts
- npm-compare.com/child_process,execa,shelljs,shx: Comparison pages say it is stable for file operations but weaker at process management
- dependents packages: 33k npm packages depend on it
GPT-6.2 Sol: 6.4, likely 5.2 to 7.5
Angular Components and Microsoft's VS Code ESLint extension list ShellJS 0.10 in their development tooling. The jQuery UI release tool also depends on it. These uses support its build and release niche, while broader user satisfaction is hard to judge and Ekino's independent evaluation chose Execa and dax for its scripting needs.
- github.com/angular/components/blob/main/package.json: Angular Components lists ShellJS and its types as development dependencies
- github.com/microsoft/vscode-eslint/blob/main/package.json: Microsoft's extension lists ShellJS as a development dependency
- github.com/jquery/jquery-release: jQuery UI still uses this release tool
- github.com/jquery/jquery-release/blob/main/package.json: The release tool pins ShellJS 0.10.0
- ekino.fr/publications/scripting-tools-a-node-js-friendly-alternative-to-makefile: Independent evaluation preferred Execa and dax
Safe6.3
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.5
It has only two advisories, both from 2022 and both fixed, with none in the last 24 months. The licence is BSD-3-Clause and there are two direct dependencies (execa and fast-glob). The OpenSSF Scorecard is 5, with zeros for token permissions, pinned dependencies, SAST and fuzzing. The string-based exec() makes command injection easy if user input reaches it.
- advisories: 2 total, 0 in the last 24 months
- scorecard score: 5/10, weak Token-Permissions and Pinned-Dependencies
- npm dependencies: 2 direct dependencies
- pistack.xyz/posts/2026-08-17-nodejs-shell-scripting-zx-shelljs-execa-comparison: Warns about injection risk from string exec
GPT-6.2 Sol: 6.5, likely 5.3 to 7.7
Both 2022 advisory entries were patched by 0.8.5, and the bundle lists no advisories in the past two years. The package has two direct dependencies and a permissive BSD-3-Clause license, while `exec()` can interpret untrusted input as shell syntax. OpenSSF scores the project 5 out of 10, with weak workflow token permissions, dependency pinning, and code review. Releases follow a documented maintainer-run process, and uncertainty about current npm publishing access and provenance widens the range.
- github.com/advisories/GHSA-4rq4-32rv-6wp6: High-severity advisory lists 0.8.5 as patched
- github.com/advisories/GHSA-64g7-mvw6-v9qj: Moderate advisory lists 0.8.5 as patched
- advisories last24Months and npm dependencies and license: Zero recent advisories, two direct dependencies, and BSD-3-Clause
- scorecard: 5 overall, token permissions and pinning at 0, code review at 4
- raw.githubusercontent.com/shelljs/shelljs/v0.10.0/README.md: Documents shell interpretation in exec and argument-based cmd
- raw.githubusercontent.com/shelljs/shelljs/main/RELEASE.md: Documents release scripts, tagging, and manual GitHub release steps
- github.com/shelljs/shelljs/releases/tag/v0.10.0: Latest GitHub release shows a verified release commit signature
Good
- Built-in commands such as cp -R, rm -rf and sed are written in JavaScript, so they behave the same on Windows and Unix CI runners.
- The API is simple and synchronous, and is easy to read in short build scripts.
- It has a very large installed base, about 230k dependent repos, and a long, stable history since 2012.
- It uses the permissive BSD-3-Clause licence, and no advisories have appeared since 2022.
Bad
- exec() takes a single string and does no automatic quoting, so dynamic commands can lead to injection bugs.
- It ships no TypeScript types (you need @types/shelljs), and it has no native promise-based API.
- Maintenance is slow: no release since v0.10.0 in May 2025, and only 19 commits in the last year.
- Downloads grew 1.25x against a 4.1x median, so new projects are choosing zx, execa or tinyexec instead.
The numbers
- npm downloads, 4 weeks
- 48M +25% in a year
- GitHub stars
- 14k
- Commits, 12 months
- 19
- npm version
- 0.10.0 May 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 2 ever
- OpenSSF Scorecard
- 5.0 out of 10, Nov 2026
- Licence
- BSD-3-Clause
Read on 21 November 2026 from GitHub (shelljs/shelljs), npm (shelljs), OSV and the OpenSSF Scorecard.