When you have a lot of npm-scripts, it's difficult to know the function of the script, so I forked a well-made ntl project.
nti
Npm Task Info
Interactive cli menu shown description to list and run npm tasks.
You can add description using
#
like following."scripts":,
Install
$ npm install -g nti
Usage
cd to a folder containing a package.json
files that has configured scripts, then:
nti
You can also specify a project folder containing a package.json
file:
nti ./my-node-project
More info
cli options can also be invoked as their shorter alias:
-a
->--all
-m
->--multiple
-i
->--info
-h
->--help
-v
->--version
Here is what the help page looks like:
nti --help Usage: nti [<path>] Options: -v --version Displays app version number -h --help Shows this help message -a --all Includes pre and post scripts on the list -m --multiple Allows a selection of multiple tasks to run at once -i --info Displays the contents of each script
License
MIT © sculove