Socket
Socket
Sign inDemoInstall

find-open-port

Package Overview
Dependencies
0
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-open-port

Returns a promise for an open port on localhost


Version published
Weekly downloads
912
increased by56.97%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

v2.0.3 (2021-03-26)

🏡 Internal
  • #8 chore: switch to main & update packages (@aaarichter)

Readme

Source

nlm-chat nlm-github nlm-node nlm-version

Find an Open Port Build Status

Install

npm install --save find-open-port

Usage

const findPort = require('find-open-port');

findPort().then(port => {
  console.log(`You may now start listening on %d.${port}`);
});

findPort.isAvailable(80).then(available => {
  console.log(`Port 80 is ${available ? 'available' : 'not available'}`);
});

Keywords

FAQs

Last updated on 26 Mar 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc