Skip to content

kp is a tool for kill process by server port. only use for mac && linux

Notifications You must be signed in to change notification settings

lilugirl/cli-demo-kp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liuyi-kp

kp is a tool for kill process by server port. only used for mac && linux

install

[sudo] npm install -g liuyi-kp

Usage

default server port is 5502

$ kp2

or kill by some port

$ kp2 3002

or wit sudo

$ kp2 3002 -s or kp2 3002 --sudo

Code

kill by some port

#! /usr/bin/env node

var kp =require("liuyi-kp");
ke(3980);

or kill by some port with sudo

#! /usr/bin/env node

var kp=require('liuyi-kp');
kp(3980,'sudo')

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new pull request

历史版本

  • v1.0.1 实现可编程调用
  • v1.0.0 初始化版本 CLI,实现 kp 导出

欢迎 fork 和反馈

如果有建议或意见, 请在issue 提问或发送邮件

License

this repo is released under the MIT License

About

kp is a tool for kill process by server port. only use for mac && linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published