Node.js 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 # output verbose log $ detect --verbose # more help $ detect --help
FAQ
Most likely network error, check that your /etc/hosts
and make sure the content below:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
Contributors
xudafeng |
fengmk2 |
ziczhu |
gaearon |
popomore |
jsw0528 |
---|
This project follows the git-contributor spec, auto upated at Tue Aug 14 2018 12:43:52 GMT+0800
.