Skip to content

cycosoft/npm-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-select

Display package.json scripts as a list of keyboard selectable line items



Install

npm i @cycosoft/npm-select --save-dev

Options

Parameter Default Description
--filter Regex pattern to filter scripts by name
--exclude --.*|\/\/.* Regex pattern to exclude scripts by name

Examples

"scripts": {
  "--------- DEMO: DEFAULT ---------": "",
  "start": "npm-select",
  "--------- DEMO: MENU GROUP ---------": "",
  "menu": "npm-select --filter \"^dev$|^tests$\"",
  "--------- DEMO: SPECIFICITY ---------": "",
  "dev": "npm-select --filter \"^dev:lite$|^dev:full$|^dev:fix$|^test:dev$\"",
  "dev:lite": "echo 'dev:lite'",
  "dev:full": "echo 'dev:full'",
  "dev:fix": "echo 'dev:fix'",
  "--------- DEMO: GROUP ---------": "",
  "tests": "npm-select --filter ^test:",
  "test:dev": "echo 'test:dev'",
  "test:eyas": "echo 'test:eyas'",
  "test:ui": "echo 'test:ui'",
  "test:ci": "echo 'test:ci'",
  "--------- DEMO: EXCLUDE ---------": "",
  "exclude": "npm-select --exclude \"::.*|--.*|\\.*|^menu$|^start$|^tests$|^dev$\"",
  "--------- EXCLUDE EXAMPLES ---------": "",
  "//comment.slash": "echo 'example // comment'",
  "::comment.colon": "echo 'example :: comment'",
  "--comment.dash": "echo 'example -- comment'"
}

npm start

npm start

npm run dev

npm run dev

npm run tests

npm run tests

npm run menu

npm run menu

npm run exclude

npm run exclude

Author

npm-select is maintained by Cycosoft, LLC

About

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors