isopen

1.3.0 • Public • Published

isopen

isOpen can check a range of ports (TCP) for 'open' or 'closed' status with label name (Ports Scanner)

NPM

Usage

Examples

const isopen = require("isopen");
 
// Check single port
isopen('github.com', 80,function(response){
    console.log(response);
});
 
// Check Range 
isopen('github.com', '20-30',function(response){
    console.log(response);
});
 
// Check array of ports 
isopen('github.com', [21,22,80,443],function(response){
    console.log(response);
});

API

isopen(host,ports,callback);
  • host: domain or ip address
  • ports: port (Integer) | ports (Array) | ports (Range) * Check Examples
  • Callback: function with object reponse

TEST

npm test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.031latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.031
1.2.21
1.2.10
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i isopen

Homepage

isopen.net

Weekly Downloads

32

Version

1.3.0

License

MIT

Unpacked Size

302 kB

Total Files

8

Last publish

Collaborators

  • jodacame