All Projects → tiaanduplessis → Kill Port

tiaanduplessis / Kill Port

Licence: mit
❌ Kill the process running on given port

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Kill Port

Find Process
find process by port/pid/name etc.
Stars: ✭ 80 (-44.06%)
Mutual labels:  port, process
Boost Process
Boost.Process is a library to manage system processes
Stars: ✭ 110 (-23.08%)
Mutual labels:  process
Flowchart Editor
基于G6和VUE的可视化流程编辑工具
Stars: ✭ 60 (-58.04%)
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
Cliwrap
Library for running command line processes
Stars: ✭ 1,057 (+639.16%)
Mutual labels:  process
Procs
A modern replacement for ps written in Rust
Stars: ✭ 2,435 (+1602.8%)
Mutual labels:  process
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
Scanport
golang版高性能端口扫描工具
Stars: ✭ 90 (-37.06%)
Mutual labels:  port
Nimscan
🚀 Fast Port Scanner 🚀
Stars: ✭ 134 (-6.29%)
Mutual labels:  port
Agileops
The Agile Operations methodology
Stars: ✭ 125 (-12.59%)
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

Table of Contents Install Usage API CLI Contribute License

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].