shelljs/shx
Portable Shell Commands for Node observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 86
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 3853
- days_rel: 535
- days_push: 86
- n_releases_24m: 2
Adoption not part of the score
1870 stars · 51 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
shx is a CLI wrapper around ShellJS that provides portable Unix-like shell commands (ls, rm, cp, mkdir, etc.) for Node.js environments. It is designed for one-off commands in npm package scripts that work identically on Unix and Windows.
Use cases
- run cross-platform shell commands in npm package scripts
- delete build output directories with shx rm -rf in a clean script
- avoid writing separate bash and Windows batch scripts for node projects
- copy, move, or touch files from a package. script
- use unix commands like ls and pwd on Windows command line
When to choose
- you need bash-like one-liners in package. scripts that work on Windows and Unix
- you want a lightweight cross-platform alternative to shell scripting in node projects
- you already use ShellJS but want convenient CLI invocation
When to avoid
- you need to write long complex shell scripts in JavaScript (use ShellJS directly)
- you need full POSIX shell features like pipes, redirection, or environment variable expansion
- you need high-performance native shell tooling
Facets
cli-tool · maturity active
cli developer-tools file-system workflow-automation developer-tools cross-platform cli cross-platform windows shelljs npm-scripts unix-commands bash-like command-line automation nodejs linux macos
2 sources
- readme: https://github.com/shelljs/shx · fetched 2026-08-28 · 02d0df31121d
- registry_npm: https://registry.npmjs.org/shx · fetched 2026-08-29 · a70f5b9152b6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| shelljs/shx | main | 73 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem