Display package.json scripts as a list of keyboard selectable line items
npm i @cycosoft/npm-select --save-dev| Parameter | Default | Description |
|---|---|---|
--filter |
Regex pattern to filter scripts by name | |
--exclude |
--.*|\/\/.* |
Regex pattern to exclude scripts by name |
"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-selectis maintained by Cycosoft, LLC




