SkillAgentSearch skills...

Shjs

shjs binary, formerly distributed as part of shelljs

Install / Use

/learn @shelljs/Shjs
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Shjs

GitHub Actions Codecov npm version

shjs binary, formerly distributed as part of ShellJS.

npm install -g shelljs-shjs

Note: this package is published as shelljs-shjs, not as shjs.

Maintenance mode

While this package is not explicitly deprecated, this is in maintenance mode. If you want to execute ShellJS scripts, just use the node command (or whatever is appropriate for the language of the script, ex. coffee).

This package was removed from ShellJS to reduce that module's dependencies and to shrink overall download size.

Usage

You can install with npm install shelljs-shjs:

$ npm install -g shelljs-shjs

This script is a convenience wrapper for guessing the right interpreter to use for your script. It also brings your local shelljs install to the front of the NODE_PATH to ensure this is used.

#!/usr/bin/env shjs

// Save this demo as 'example_script.js'

var shell = require('shelljs');
shell.echo('hello world');

Then run the demo script with:

$ shjs example_script.js
hello world

Related Skills

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated2mo ago
Forks1

Languages

JavaScript

Security Score

70/100

Audited on Jan 1, 2026

No findings