# end-port **Repository Path**: mx369/end-port ## Basic Information - **Project Name**: end-port - **Description**: 一个通过端口关闭进程的node工具 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-30 - **Last Updated**: 2024-08-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## npx使用 `npx endport 端口` - npx endport 8080 - npx endport 8080 8081 ## 安装使用 `npm i -g endport` 1. 解除一个端口占用 `endport 8080` 2. 解除多个端口占用,多个端口用空格隔开 `endport 8080 8081` ## tips 内置三个命令行工具`endprot` `killport` `end-port`,效果一样 ## 如果项目代码中需要使用,endport有导出下面一些函数 1. `endPort`解除端口占用 2. `endPorts`批量解除端口占用 - 具体细节可以参考dist/types/index.d.ts