nps-cli 让你只用命令行就能玩转 npm
在命令行就可以完成 package.json scripts 字段的列出、设置、删除
Node.js 命令行实用程序
共18Star
详细介绍
nps-cli
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-cli 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
-
50 Star
-
611 Star
-
107 Star
-
0 Star
-
156 Star
-
0 Star
-
167 Star
-
14752 Star
-
97 Star