Skip to content

idleberg/krampus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👹 krampus

Command-line tool to kill one or more processes by its port number.

License Version Build

Installation

Homebrew

$ brew install idleberg/asahi/krampus --build-from-source

Go

$ go install github.com/idleberg/krampus@latest

⚠️ Make sure that your Go binaries path (usually $HOME/go/bin or %USERPROFILE%\go\bin on Windows) is in your system's PATH.

Manual

You can download the latest release from GitHub and install it manually.

Usage

# Let's kill your web-server
$ krampus 80 443

Benchmark

Benchmark 1: node-krampus 3333
  Time (mean ± σ):     869.7 ms ±   6.0 ms    [User: 775.7 ms, System: 158.6 ms]
  Range (min … max):   861.7 ms … 884.3 ms    10 runs
 
Benchmark 2: go-krampus 3333
  Time (mean ± σ):      61.5 ms ±   2.5 ms    [User: 37.8 ms, System: 19.5 ms]
  Range (min … max):    58.7 ms …  73.3 ms    43 runs
 
Summary
  go-krampus 3333 ran
   14.15 ± 0.58 times faster than node-krampus 3333

Credit

Name and idea inspired by Mario Nebl's krampus for NodeJS.

License

This work is licensed under The MIT License.

About

Command-line tool to kill one or more processes by its port number

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages