# liuyi-kp

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

Latest version **1.0.5** (published 2023-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install liuyi-kp
pnpm add liuyi-kp
yarn add liuyi-kp
bun add liuyi-kp
```

Provides the command `kp2`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-04-05 |
| First published | 2023-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | lilugirl2005 |

## Links

- npm: https://www.npmjs.com/package/liuyi-kp
- Repository: https://github.com/lilugirl/cli-demo-kp
- Homepage: https://github.com/lilugirl/cli-demo-kp#readme
- Issues: https://github.com/lilugirl/cli-demo-kp/issues
- npm.io page: https://npm.io/package/liuyi-kp

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^4.3.4

## Recent versions

- 1.0.5 (latest) — 2023-04-05
- 1.0.4 — 2023-04-05
- 1.0.3 — 2023-04-05
- 1.0.2 — 2023-04-05
- 1.0.1 — 2023-04-05
- 1.0.0 — 2023-04-05

## README

# 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 和反馈
- write by `lilugirl` lilugirl2005@126.com

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

## License

this repo is released under the [MIT License](http://www.opensource.org/license/MIT)

---
_Source: https://npm.io/package/liuyi-kp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
