kp is a tool for kill process by server port. it can be used on mac && linux && window
$ [sudo] npm install -g kp
default server port is 3000
$ kp
or kill by some port
$ kp 3002
or with sudo
$ kp 3002 -s or kp 3002 --sudo
kill by some port
#!/usr/bin/env node
var kp = require("kp");
kp(3980);
or
kill by some port with sudo
#!/usr/bin/env node
var kp = require("kp");
kp(3980, 'sudo');
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- v1.1.0 实现可编程调用
- v1.0.0 初始化版本cli,实现kp导出
- write by
i5ting
i5ting@126.com
如有建议或意见,请在issue提问或邮件
this repo is released under the MIT License.