@cycosoft/npm-select
v1.0.0
Published
Display package.json scripts as a list of keyboard selectable line items
Downloads
6
Readme
Install
npm i @cycosoft/npm-select --save-devOptions
| 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 run dev
npm run tests
npm run menu
npm run exclude
Author
npm-selectis maintained by Cycosoft, LLC
