1.0.5 • Published 1 year ago

shelljs-plugin-help v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

shelljs-plugin-help

npm Actions Status codecov GitHub license shelljs-plugin

A ShellJS help documentation plugin for getting quick documentation on ShellJS commands.

Installation

npm i shelljs
npm i shelljs-plugin-help

Usage

  • Get information on a ShellJS command: help(COMMAND)

COMMAND is an optional string representing a ShellJS command.

  • See available ShellJS documentation entries with no arguments passed: help()

Examples

To get more information on the ShellJS 'sed' command, you can do the following:

const shell = require('shelljs');
require('shelljs-plugin-help');

const sedDocs = shell.help('sed');
shell.echo(sedDocs.stdout);

To see a list of available shelljs-plugin-help documentation entries, you can call help without any arguments:

const shell = require('shelljs');
require('shelljs-plugin-help');

const availableDocs = shell.help();
shell.echo(sedDocs.stdout);

License

MIT

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago