1.0.2 • Published 3 years ago
scripts-list v1.0.2
Scripts List
Easily list all scripts in your
package.json
Install
Locally:
$ npm install scripts-list
Globally:
$ npm install -g scripts-list
Update your package.json
to include it as a script:
{
...,
"scripts": {
"tasks": "npx scripts-list",
"dev": "nodemon src/index.js",
...
}
}
Optionally add descriptions for your scripts:
{
...,
"scriptsList": {
"dev": "Start the development server",
...
}
}
CLI Options
Argument | Type | Default | Options | Description | |
---|---|---|---|---|---|
--format | String | json | json, list | Control the output format | |
--color | Boolean | false | true, false | Use colors in output | |
--indent | Boolean | String | \t | true, false or custom string, e.g. ' ' | Indent output below each command (applies to formats: list ) |
Examples
Default JSON
scripts-list
List format with colors & custom indent
scripts-list --format list --color --indent=' '