1.0.2 • Published 3 years ago

scripts-list v1.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

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

ArgumentTypeDefaultOptionsDescription
--formatStringjsonjson, listControl the output format
--colorBooleanfalsetrue, falseUse colors in output
--indentBooleanString\ttrue, 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='  '
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago