1.0.0 • Published 11 months ago

@boly38/check-port v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

check-port

This project is inspired from famous repository

usage to check a port

setup

(need clone)

# setup
npm install

run sample

# launch sample
node samples/basic.js

to 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