New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

watch-port

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watch-port

run an arbitrary command when a server reboots

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

watch-port

Run an arbitrary command when a server reboots.

As most servers temporarily close their socket when rebooting, we can listen to the connect and disconnect events to decide when a given command needs to rerun.

Usage

watch-port -p 3003 -c "node regen-types.js --spec https://example.com/openapi.json"

Keywords

formdata

FAQs

Package last updated on 09 Jun 2025

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