as-networks
                                
                                 as-networks copied to clipboard
                                
                                    as-networks copied to clipboard
                            
                            
                            
                        Get all CIDR networks contained in an autonomous system
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