Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@network-utils/tcp-scanner

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@network-utils/tcp-scanner

A dead simple promise-based TCP scanner, written in Typescript.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

TCP-Scanner

code style: prettier

A dead simple promise-based TCP scanner, written in Typescript.

Installation

$ npm install @network-utils/tcp-scanner --save

Usage

scan(port: number, range?: string, timeout?: number): Promise<string[]>

Scans the network for hosts with port open.

port The port to connect to.
range A CIDR range or "arp" to limit the scan to the system's arp table
timeout The timeout for each TCP connection. Defaults to 200ms

Throws an invalid CIDR subnet error if range is not a CIDR range or the string "arp"
Throws a "Negative port" error if port < 1.


To-Do

  • Add tests

License

MIT

Keywords

FAQs

Package last updated on 14 Oct 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc