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

as-networks

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-networks

Get all CIDR networks contained in an autonomous system

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

as-networks

Get all CIDR networks contained in an autonomous system

Install

$ npm i as-networks

Usage

const asNetworks = require('as-networks');

await asNetworks('AS237'); // => Array of CIDR networks in origin object AS237
await asNetworks('MAINT-AS237'); // => Array of CIDR networks maintained by object MAINT-AS237

API

asNetworks(name, [options])

Returns a promise that will resolve to an Array of merged and sorted CIDR networks found for name. If none are found, a empty array is returned. Will reject on network errors.

options
  • server: The WHOIS server to use. Default: 'whois.radb.net'.
  • port: The port to use. Default: 43.

License

© silverwind, distributed under BSD licence

Keywords

FAQs

Package last updated on 05 Aug 2021

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