Socket
Book a DemoInstallSign in
Socket

shelljs-shjs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shelljs-shjs

Binary to invoke ShellJS scripts

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

shjs

FAQs

Package last updated on 09 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts