portyo
find free ports. bruh.
v1.2.0
MIT
~12kb
0 dependencies
Installation
npm install -g portyo
Usage
# find a free port
portyo
# → 3847
# find 5 free ports
portyo -n 5
# → 3847, 3848, 4521, 5000, 5001
# check if port 3000 is free
portyo -c 3000
# → Port 3000 is in use by node (PID: 12345)
# kill process on port 3000
portyo -k 3000
# → Killed process on port 3000. rip.
# find free port in range 8000-9000
portyo -s 8000 -e 9000
# → 8080