nps
Easily ls/set/remove package.json's scripts field in cli.
Why
Opening package.json and then find the scripts field and then add/remove script and then close the file became annoying.
Installation
npm install -g nps-cli
DESCRIPTION
nps provides 3 commands to manage the scripts field:
-
nps ls
- list current scripts field. -
nps set <key=value>
- set specified key value pair in scripts field. -
nps remove <key>
- remove specified key in scripts field.
Example
$ nps ls$ nps set test=ava coverage='nyc ava'$ nps remove coverage
Contributing
- ⇄ Pull requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
LICENSE
MIT