package-menu-cli

v1.4.2
Displays menu of scripts from directory containing `package.json`
package menu scripts cli

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: [email protected]

Twitter: @codedungeon

Website: codedungeon.org

Special Credit to ruyadorno for his work on ntl

Metadata

Downloads