tiaanduplessis / Kill Port
Licence: mit
❌ Kill the process running on given port
Stars: ✭ 143
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Kill Port
Boost Process
Boost.Process is a library to manage system processes
Stars: ✭ 110 (-23.08%)
Mutual labels: process
Python Haystack
Process heap analysis framework - Windows/Linux - record type inference and forensics
Stars: ✭ 89 (-37.76%)
Mutual labels: process
Ps mem
A utility to accurately report the in core memory usage for a program
Stars: ✭ 1,159 (+710.49%)
Mutual labels: process
Nwjs rpi
[NW.js port for Raspberry Pi] binary compiled for the ARMv6 used in Raspberry Pi (compatible with RPi 2 and RPi 3)
Stars: ✭ 91 (-36.36%)
Mutual labels: port
Parallel Process
🏃 Run multiple processes simultaneously
Stars: ✭ 102 (-28.67%)
Mutual labels: process
Advanced Php
最近打算写一些php一些偏微妙的教程,比如关于多进程、socket等相关,都是自己的一些感悟心得
Stars: ✭ 1,271 (+788.81%)
Mutual labels: process
Ipc
Public domain single header inter process communication primitives
Stars: ✭ 85 (-40.56%)
Mutual labels: process
Loading indicator view
A collection of awesome flutter loading animation
Stars: ✭ 83 (-41.96%)
Mutual labels: process
Sh Exec
💻 Use `Template literals` write shell script made happy ❤️.
Stars: ✭ 95 (-33.57%)
Mutual labels: process
Wecantspell.hunspell
A port of Hunspell v1 for .NET and .NET Standard
Stars: ✭ 61 (-57.34%)
Mutual labels: port
Powershell ipv4portscanner
Powerful asynchronus IPv4 port scanner for PowerShell
Stars: ✭ 117 (-18.18%)
Mutual labels: port
Node Process List
Cross-platform native method to receive the list of the launched processes
Stars: ✭ 51 (-64.34%)
Mutual labels: process
Augmentedgaussianprocesses.jl
Gaussian Process package based on data augmentation, sparsity and natural gradients
Stars: ✭ 99 (-30.77%)
Mutual labels: process
kill-port
Kill the process running on given port
Table of Contents
Install
$ npm install --save kill-port
# OR
$ yarn add kill-port
Usage
const kill = require('kill-port')
const http = require('http')
const port = 8080
const server = http.createServer((req, res) => {
res.writeHead(200, {
'Content-Type': 'text/plain'
})
res.end('Hi!')
})
server.listen(port, () => {
setTimeout(() => {
// Currently you can kill ports running on TCP or UDP protocols
kill(port, 'tcp')
.then(console.log)
.catch(console.log)
}, 1000)
})
API
The module exports a single function that takes a port number as argument. It returns a promise.
CLI
$ npm install --global kill-port
# OR
$ yarn global add kill-port
Then:
$ kill-port --port 8080
# OR
$ kill-port 9000
# OR you can use UDP
$ kill-port 9000 --method udp
You can also kill multiple ports:
$ kill-port --port 8080,5000,3000
# OR
$ kill-port 9000 3000 5000
Contribute
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
License
Licensed under the MIT License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].