{"library":"wait-port","type":"library","category":null,"description":"wait-port is a utility for Node.js environments designed to asynchronously wait for a network port, HTTP endpoint, or DNS record to become available. It is particularly useful in scripting scenarios, such as `docker-compose` setups, CI/CD pipelines, or application startup scripts, where service dependencies need to be met before proceeding. The package provides both a command-line interface (CLI) and a programmatic API. The current stable version is 1.1.0, released in September 2023, indicating an active development and maintenance cadence. Key features include configurable timeouts, support for TCP, HTTP (checking for 200-class status codes), and DNS resolution (`ENOTFOUND` handling), and robust IPv4/IPv6 support, including 'happy eyeballs' via `autoSelectFamily` introduced in v1.1.0. It distinguishes itself by its simplicity and dual usage model, making it a reliable choice for ensuring service readiness.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install wait-port","imports":["import waitPort from 'wait-port';","const waitPort = require('wait-port');","wait-port localhost:8080 -t 5000"]},{"cmd":"yarn add wait-port","imports":[]},{"cmd":"pnpm add wait-port","imports":[]}],"homepage":null,"github":"https://github.com/dwmkerr/wait-port","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/wait-port","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/wait-port/compatibility"}}