Skip to content

swimauger/portscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PortScan Node.js Package

Node.js package built to scan for open ports on both local and external networks.

Installation

Install portscan Library

    npm install @swimauger/portscan

Examples

Check local port open and use callback as last argument to log outcome

 portscan(5000, console.log);

Check if an external addresses port is open and use async/await to get results

const result1 = await portscan("72.54.82.99:5000");
const result2 = await portscan("72.54.82.99:5000", "61.84.93.111:5000");

Use a mix of checking local and external address ports

const results = await portscan("72.54.82.99:5000", "61.84.93.111:5000", 5000);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published