Skip to content

netcat

import { waitPort } from 'sysopkit/op/netcat';

Waits for a TCP port to become reachable using netcat:

await waitPort({ host: '10.0.1.1', port: 80, delay: 1000 });

Options:

OptionDefaultDescription
hostTarget host (required)
portTarget port (required)
delay5000Poll interval in ms