npm.io
0.2.2 • Published 2 years agoCLI

tun-runner

Licence
ISC
Version
0.2.2
Deps
1
Size
5 kB
Vulns
0
Weekly
0

tun-runner

Interactive script runner.

Usage

npm i -g tun-runner
{
  "scripts": {
    "dev:mod1": "echo mod1",
    "dev:mod2": "echo mod2",
    "dev:mod3": "echo mod3"
  }
}
tun dev

Output:

? Select script » - Use arrow-keys. Return to submit.
>   dev:mod1
    dev:mod2
    dev:mod3

tun d would result in the same, as it simply matches all scripts that start with the provided input.

Notes

  • Omitting input provides all scripts as options.
  • Exact matches are run without selection.
  • Selecting a script that also calls tun will throw an error.

Keywords