package-menu-cli
v1.5.3
Published
Displays menu of scripts from directory containing `package.json`
Downloads
5
Readme
pkg-menu-cli
Intro
Simple CLI to display table of package.json
scripts information for current directory.
Install
$ npm i -g pkg-menu-cli
Usage
$ package-menu (returns menu)
┌───────────────────────────────────────┬───────────────────────────────────────────┐
│ Name │ Script │
├───────────────────────────────────────┼───────────────────────────────────────────┤
│ test │ mocha │
├───────────────────────────────────────┼───────────────────────────────────────────┤
│ menu │ node ./cli.js │
└───────────────────────────────────────┴───────────────────────────────────────────┘
You can supply of of switches
-- sort, -s Sort Result
-- compress, -c Display Script Name Only
-- launch, -l Display Launcher Interface
Addtional switches when using --launch
--multiple, -m Allow multiple selection
--all, -a Run all scripts
--info, -i Shows script description
$ package-menu --sort
$ package-menu -l // show launcher
$ package-menu --launch --multiple // show launcher with multiselect
$ package-menu -lm // Supports CLI shorthand
Credits
pkg-menu-cli written by Mike Erickson
E-Mail: [email protected]
Twitter: @codedungeon
Website: codedungeon.org