0.3.0 • Published 9 years ago
npm-scripter v0.3.0
npm-scripter
A simple npm helper for the command-line to manage npm-scripts.
It's for the lazy programmer because editing json files is terrible.
Install
npm install -g npm-scripterIf you like, create a bash alias
alias nps='npm-scripter'Get help & examples with
nps -hUsage
List all npm-scripts with (basically the same as npm run)
npsList npm-script foo with
nps fooCreate a new npm-script with
nps foo 'echo "bar"'This creates an entry in package.json like this:
"scripts": {
"foo": "echo \"bar\""
}Edit an existing npm-script (only the commands part) in $EDITOR with
nps foo -eDelete npm-script foo with
nps foo -dDelete all npm-scripts with
nps -d