get-port-sync
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

get-port-sync

a synchronous version of sindresorhus/get-port


Install

npm install get-port-sync

Usage

const getPortSync = require('get-port-sync');
let   freePort    = null;
 
try       { freePort = getPortSync() }
catch (e) { /* boo */                }

Test

npm run test

Related

Readme

Keywords

Package Sidebar

Install

npm i get-port-sync

Weekly Downloads

1,240

Version

1.0.1

License

MIT

Unpacked Size

3.43 kB

Total Files

6

Last publish

Collaborators

  • ujc