keep-open
v1.0.2
Published
A CLI tool to keep the forwarded ports (e.g. with SSH or Kubernetes) connected
Readme
keep-open
A CLI tool to keep the forwarded ports (e.g. with SSH or Kubernetes) connected; a cross platform equivalent of
while true; do sleep $SECONDS; nc -vz $HOST $PORT; donePeriodically sends empty package to a given list of server / ports.
Usage
One-time run without installation:
npx keep-open -p localhost:1234 localhost:4321Specify custom interval (default is 60s) and initial waiting time (default is 60s):
npx keep-open -p localhost:1234 localhost:4321 -w 10 -i 10Install globally
npm i -g keep-openUse in project
npm i -D keep-openThen, can be used within the package.json's scripts.
Plays nicely with npm-run-all: can be run in parallel with npm scripts.
