wesleybliss / scripts-list

Easily list all scripts in your `package.json`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. ' '

Examples

Default JSON

scripts-list

List format with colors & custom indent

scripts-list --format list --color --indent='  '

About

Easily list all scripts in your `package.json`

License:MIT License


Languages

Language:JavaScript 100.0%