Implement a help
field on your project's package.json
listing all the scripts you want to display information about. Just make sure to use the same keys.
$ npm run help -s
> [email protected] help /Users/gordon-freeman/dev/project-sample
> node tools/help.js
Available scripts for "project-sample"
start Start local development server at http://localhost:3000
deps Inherit dependencies from main application and persist to manifest
help Display project usage information
Note: the -s
will suppress npm output noise, you can still use without it if you want