Skip to content

MCTzOCK/NodeJS-Port-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Port Scanner

Scan for all open ports on a server

Using

Run in your terminal: npm i nodejs-port-scanner

Requirering the module:

const {PortChecker} = require('nodejs-port-checker/src/PortChecker')

PortChecker.checkHost({
    host: "example.com", //                     -> the host that will be checked
    minPort: 0, // default 0                    -> them min port number that will be checked
    maxPort: 65535, // default 65535            -> the max port number that will be checked
    logOffline: false, // default false         -> log even ports that are offline
    output: console.log // default console.log  -> the method that will be used as callback
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published