Neverending Pile of Messages
    Have ideas to improve npm?Join in the discussion! »

    kp

    2.0.1 • Public • Published

    kp

    kp is a tool for kill process by server port. it can be used on mac && linux && window

    npm version

    Install

    $ [sudo] npm install -g kp
    

    Usage

    default server port is 3000

    $ kp
    

    or kill by some port

    $ kp 3002
    

    or with sudo

    $ kp 3002 -s or kp 3002 --sudo
    

    Code

    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');
    

    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.1.0 实现可编程调用
    • v1.0.0 初始化版本cli,实现kp导出

    欢迎fork和反馈

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

    License

    this repo is released under the MIT License.

    Install

    npm i kp

    DownloadsWeekly Downloads

    8

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    5.17 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar