npm-script
Generate spawn options for running package.json scripts
Example
Emulates npm run-script $SCRIPT_NAME
**NOTE: ** Does not add in the log wrapping like NPM
var lifecycle = processargv2;;
Differences from NPM
- Does not add in defaults for scripts like
npm run-scripts start
(use options.defaultScript) - Does not auto add in the current path, set it in options.env (will append if already has a value)
- Does not change users for you, use something like
suspawn
See
npm help scripts