whois-raw-to-json

1.0.9 • Public • Published

Whois RAW to JSON

Module that allows you to query whois information and display data in json format.

Installation

npm install whois-raw-to-json

Usage

(async function(){
  const whois = require('whois-raw-to-json');

  var results = await whois.lookup('regexart.com');
  console.log(JSON.stringify(results, null, 2));
})()

Output: 200

{
  "statusCode": 200,
  "isAvailable": false,
  "supportedTLD": true,
  "domainName": "regexart.com",
  "registrar": "Google LLC",
  "updatedDate": "13.12.2021 15:51:58",
  "creationDate": "11.12.2021 23:31:34",
  "expirationDate": "11.12.2022 23:31:34",
  "status": [
    "clientTransferProhibited https://icann.org/epp#clientTransferProhibited"
  ],
  "nameServers": [
    "NS1.REGEXART.COM",
    "NS2.REGEXART.COM"
  ],
  "raw": "..."
}

Output: 404

{
  "statusCode": 404,
  "message": "TLD not supported"
}

JSON Supported TLDs

Other TLDs output JSON but do not guarantee full compatibility.

ALL TLDS
.com .net .org .co .xyz .io .me .info .top .in
.ai .online .us .biz .tv .tech .cc .club .dev .mobi
.name .ru .su .im .uk .tc .pw .pro .de .app
.site .download .shop .store .cloud .cn .at .pm .re .ws
.ie .ist .istanbul .link .kim .vip .red .men .wtf .art
.one .news .live .life .works .email .design .global .network .wiki
.blog .kitchen .photo .photos .pics .pictures .bio .reviews .credit .watch
.center .community .fun .fund .market .media .movie .studio .support .taxi
.team .technology .today .tools .vote .computer .video . . .
TR TLDS
.com.tr .net.tr .org.tr .gen.tr .web.tr .tv.tr .biz.tr .info.tr .name.tr .bbs.tr
.tel.tr .edu.tr .gov.tr .dr.tr .av.tr .pol.tr .tsk.tr .mil.tr .bel.tr .k12.tr

Readme

Keywords

Package Sidebar

Install

npm i whois-raw-to-json

Weekly Downloads

6

Version

1.0.9

License

MIT

Unpacked Size

12.6 kB

Total Files

7

Last publish

Collaborators

  • regexart