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.0.1
  • 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');

const networks = await asNetworks('AS237');
// => Array of CIDR networks in origin object AS237

const networks = 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 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 12 Oct 2018

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