nps-cli

0.0.1 • Public • Published

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
{
  "test""echo \"Error: no test specified\" && exit 1"
}
$ nps set test=ava coverage='nyc ava'
{
  "test""ava",
  "coverage""nyc ava"
}
$ nps remove coverage
{
  "test""ava"
}

Contributing

  • ⇄ Pull requests and ★ Stars are always welcome.
  • For bugs and feature requests, please create an issue.

LICENSE

MIT

Package Sidebar

Install

npm i nps-cli

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • joezheng