whois-node-json

0.0.8 • Public • Published

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:
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.

Tests

Please ensure you have stable internet connectivity and run:

npm run test

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i whois-node-json

      Weekly Downloads

      66

      Version

      0.0.8

      License

      MIT

      Unpacked Size

      22.2 kB

      Total Files

      11

      Last publish

      Collaborators

      • denisixnpm