Socket
Socket
Sign inDemoInstall

isopen

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    isopen

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


Version published
Weekly downloads
59
decreased by-13.24%
Maintainers
1
Install size
295 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 02 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc