Skip to content

boly38/check-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'))"