shx: Portable Shell Commands for Node

JSON →
library 0.4.0 ·javascript
verified May 27, 2026

shx is a command-line wrapper for ShellJS, designed specifically for providing cross-platform Unix-like commands within npm package scripts. It enables developers to use common shell commands such as `rm`, `cp`, `ls`, `mkdir`, `echo`, and `sed` consistently across different operating systems (Unix, Windows) without encountering shell-specific syntax issues. The current stable version, 0.4.0, is based on ShellJS v0.9, and mandates Node.js v18 or newer. Its primary differentiator from ShellJS (which is suitable for longer, programmatic JavaScript scripts) is its focus on simple, one-off command executions in `package.json` scripts, offering portability and ease of integration into build tooling and development workflows. shx's release cadence is tied to its upstream ShellJS dependency. It ensures a consistent CLI experience for basic file system operations.

total hits 17
actors 7 distinct systems
last hit 6d ago MetaBot
GPTBot
5
MetaBot
4
Script
2
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇱 Netherlands · 🇩🇪 Germany · 🇮🇳 India