1.0.0 • Published 11 months ago
@boly38/check-port v1.0.0
check-port
This project is inspired from famous repository
usage to check a port
setup
(need clone)
# setup
npm installrun sample
# launch sample
node samples/basic.jsto use this library
import checkPort from "@boly38/check-port"accept port on localhost:44204
Example to set up a port listener
npm i http
node.exe -e "require('http').createServer((req, res) => res.end('Hello World')).listen(44204, () => console.log('Listening on port 44204'))"1.0.0
11 months ago