scripts-list
v1.0.2
Published
> Easily list all scripts in your `package.json`
Readme
Scripts List
Easily list all scripts in your
package.json
Install
Locally:
$ npm install scripts-listGlobally:
$ npm install -g scripts-listUpdate 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-listList format with colors & custom indent
scripts-list --format list --color --indent=' '