Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

keep-open

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keep-open

A CLI tool to keep the forwarded ports (e.g. with SSH or Kubernetes) connected

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

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; done

Periodically sends empty package to a given list of server / ports.

Usage

One-time run without installation:

npx keep-open -p localhost:1234 localhost:4321

Specify custom interval (default is 60s):

npx keep-open -p localhost:1234 localhost:4321 -i 60

Install globally

npm i -g keep-open

Use in project

npm i -D keep-open

Then, can be used within the package.json's scripts.

Plays nicely with npm-run-all: can be run in parallel with npm scripts.

License

MIT

Keywords

FAQs

Package last updated on 30 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc