JavaScript Implementation of Port Detector
Usage
$ npm i detect-port --save
const detect = ; /** * callback usage */ ; /** * for a yield syntax instead of callback function implement */ const co = ; ; /** * use as a promise */ ;
Command Line Tool
$ npm i detect-port -g
Quick Start
# get an available port randomly $ detect # detect pointed port $ detect 80 # more help $ detect --help