0.0.11 • Published 4 years ago

package-json-help v0.0.11

Weekly downloads
449
License
MIT
Repository
github
Last release
4 years ago

package.json help

lists the available scripts in package.json

Installation

npm i -D js-parametrize

Usage

add to your NPM scripts (in package.json) as follows:

"scripts": {
    "help": "package-json-help.js",
    "_cmd1": "echo HELLO",
    "cmd2": "echo GOODBYE",
    ...
}

add a help.json file, with keys corresponding to each "public" script in your package.json and values being the description for that script.

eg. given the above scripts, and the following help.json:

{
  "cmd1": "just says goodbye, in caps"
}

running this:

npm run help

will output something like:

available commands ...
cmd1    just says goodbye, in caps
0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago