package-menu-cli

1.5.3 • Public • Published

pkg-menu-cli

Intro

Simple CLI to display table of package.json scripts information for current directory.

Install

$ npm i -g pkg-menu-cli

Package Menu CLI on npm

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: codedungeon@gmail.com

Twitter: @codedungeon

Website: codedungeon.org

Special Credit to ruyadorno for his work on ntl

Readme

Keywords

Package Sidebar

Install

npm i package-menu-cli

Weekly Downloads

2

Version

1.5.3

License

MIT

Unpacked Size

14.3 kB

Total Files

11

Last publish

Collaborators

  • codedungeon
  • mikeerickson