8000 GitHub - silverwind/as-networks: Get all CIDR networks contained in an autonomous system
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

silverwind/as-networks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get all CIDR networks contained in an autonomous system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0