1.0.9 • Published 2 years ago

whois-raw-to-json v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

ALLTLDS
.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...
TRTLDS
.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
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago