Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

whois-node-json

denisix51MIT0.0.8

Node-WHOIS-JSON - WHOIS fetch & output in JSON, slim & fast, without any dependencies

whois, node-whois, whois-node, whois-json, json-whois, asn, netblock, subnet, domain whois, asn whois, as, as whois, whois info, whois query, netwhois, json whois, json, fast whois, whois ipv6, ipv6 whois, net6 whois, whois net6, whois ipv6 network, ipv6 info, cidr whois, whois cidr, cidr6 whois

readme

NPM npm bundle size GitHub package.json version Lines of code

whois-node-json

Whois-Node-JSON - WHOIS fetch & output in JSON, slim & fast, without any dependencies

Features

  • zero dependencies!
  • raw whois client from scratch
  • as fast as possible!
  • built-in whois parser that outputs JSON structured data!
  • pre-bootstraped IANA RIRs ASNs / network prefixes / whoises map to make requests even faster!
  • retries & timeouts
  • automatically follows refering whois servers
  • supports domain / ASN / networks queries
  • supports IPv6 resources

API

  • as simple as possible, query can be any domain, ASN or IPv4 address/network: `js const whois = require('whois-node-json')

whois('google.com').then(result => console.log('domain whois:', result)) whois('AS3333').then(result => console.log('asn whois:', result)) whois('193.0.0.0/21').then(result => console.log('network whois:', result)) whois('2001:67c:2e8:22::c100:68b').then(result => console.log('network ipv6:', result))


## Examples
More examples can be found in [test.js](https://github.com/denisix/whois-node-json/blob/main/test.js).

## Tests
Please ensure you have stable internet connectivity and run:
```js
npm run test

whois #whois-json #whois-query #whois-client #whois-as #whois-network