Skip to content
/ shjs Public

shjs binary, formerly distributed as part of shelljs

License

Notifications You must be signed in to change notification settings

shelljs/shjs

Repository files navigation

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

About

shjs binary, formerly distributed as part of shelljs

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published