</>PackageGraphPackageGraph

wait-port

npmv1.1.0

Utility to wait for a TCP port to open.

Adopt with care

wait-port is usable, with caveats. Last published 1085 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 1085 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 4 transitive packages, about 292 KB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding wait-port to a project.

3
Direct dependencies

Runtime packages this one declares itself.

4
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

292 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing wait-port, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=10
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the wait-port README.

const waitPort = require('wait-port');

const params = {
  host: 'google.com',
  port: 443,
};

waitPort(params)
  .then(({ open, ipVersion }) => {
    if (open) console.log(`The port is now open on IPv${ipVersion}!`);
    else console.log('The port did not open before the timeout...');
  })
  .catch((err) => {
    console.err(`An unknown error occured while waiting for the port: ${err}`);
Example truncated — see the full README.

Dependencies

Declared by wait-port v1.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (3)

Dev (8)

codecov ^3.8.2eslint ^8.19.0eslint-plugin-import ^2.26.0eslint-plugin-node ^11.1.0mocha ^10.0.0mocha-junit-reporter ^2.0.2nyc ^15.1.0sinon ^14.0.0

Used by

Popular packages that depend on wait-port.

Relationship graph

Dependencies (left) and dependents (right) of wait-port.

Frequently installed together

Release history

No releases in the last two years, typically about 11 days apart.

Recent versions of wait-port
VersionPublishedSizeLicense
1.1.0latest3 years ago41 KBMIT
1.0.43 years ago41 KBMIT
1.0.33 years ago41 KBMIT
1.0.14 years ago45 KBMIT
1.0.04 years ago40 KBMIT
0.3.14 years ago42 KBMIT
0.3.04 years ago42 KBMIT
0.2.144 years ago41 KBMIT
0.2.134 years ago41 KBMIT
0.2.96 years ago180 KBMIT
0.2.86 years ago180 KBMIT
0.2.76 years ago180 KBMIT
0.2.67 years ago180 KBMIT
0.2.47 years ago189 KBMIT
0.2.37 years ago186 KBMIT

Overview

wait-port is an npm package that utility to wait for a TCP port to open. It has 3 known dependents in the graph. The latest version is 1.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need utility to wait for a TCP port to open and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use wait-port?

wait-port is usable, with caveats. Last published 1085 days ago.

How do I install wait-port?

Run `npm install wait-port` to add wait-port to your npm project.

How many dependencies does wait-port have?

wait-port declares 11 direct dependencies and pulls in 4 packages in total once its runtime tree is resolved totalling about 292 KB on disk.

What license is wait-port released under?

wait-port is distributed under the MIT license.

How popular is wait-port?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on wait-port.

Is wait-port still maintained?

The most recent release of wait-port (v1.1.0) was published 3 years ago.

Does wait-port run install scripts?

No. wait-port does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.