npm.io
1.1.1 • Published 6 years agoCLI

npm-run-cli

Licence
ISC
Version
1.1.1
Deps
2
Size
1.5 MB
Vulns
0
Weekly
0

CLI to run scripts from package.json

Example

Given the following scripts section in package.json:

{
  "scripts": {
    "build": "tsc index.ts --outDir dist",
    "build:watch": "tsc index.ts --outDir dist --watch",
    "demo:test": "",
    "demo:test:unit": "",
    "demo:test:integration": "",
    "demo:build": ""
  }
}

npm-run will output:

demo

Installation

npm install -g npm-run-cli

Usage

npm-run

Configuration

Add .npmrunrc to override the configuration. The default config is:

{
  "delimiter": ":"
}