# ShellJS: 5.1 out of 10

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

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

- **Overall: 5.1** (likely 4.1 to 6.2)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (5.7): 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.
- **Needed by many: 5.4** (likely 4.3 to 6.5)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (4.7): 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.
- **Helps a lot: 5.7** (likely 4.6 to 6.7)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (6.3): 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.
- **Holds up over time: 4.7** (likely 3.3 to 6.2)
  - Claude Opus 5.5 (4.5): 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.
  - GPT-6.2 Sol (4.8): 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.
- **Used widely: 6.2** (likely 5.1 to 7.3)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.3): 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.
- **Vouched for: 5.7** (likely 4.4 to 7.0)
  - Claude Opus 5.5 (5.0): 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.
  - GPT-6.2 Sol (6.4): 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.
- **Safe: 6.3** (likely 5.2 to 7.6)
  - Claude Opus 5.5 (6.0): 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.
  - GPT-6.2 Sol (6.5): 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.

## 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

- Downloads, 4 weeks: 48M
- In a year: +25%
- GitHub stars: 14k
- Commits, 12 months: 19
- Last npm release: May 2025
- Advisories, 24 months: 0
- Licence: BSD-3-Clause
- GitHub: https://github.com/shelljs/shelljs
- npm: https://www.npmjs.com/package/shelljs

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.
