detect-port-sync
v1.1.1
Published
### Usage
Downloads
13
Readme
detect-port-sync
Usage
const getPort = require('detect-port-sync');
const port = getPort();
Pass in a preferred port:
const getPort = require('detect-port-sync');
const port = getPort({ port: 3000 });
Pass in an array of preferred ports:
const getPort = require('detect-port-sync');
const port = getPort({ port: [3000, 3001, 3002] });