Parse the result of the whois
command to get the expiration date, creation date, update date, etc.
It is intended to be used to parse the raw text of the whois
command obtained using a package such as whois-light
.
https://www.npmjs.com/package/@smeghead7/whois-result-parser
npm i whois-light
npm i @smeghead7/whois-result-parser
const whois = require('whois-light');
const WhoisResultParser = require('@smeghead7/whois-result-parser');
(async () => {
const whoisResult = await whois.lookup("ntt.jp")
const parser = new WhoisResultParser('ntt.jp', whoisResult);
console.log(parser.parse());
})();
// => {
// domainName: 'NTT.JP',
// updatedDate: '2022-06-01T01:05:07+00:00',
// creationDate: '2001-05-09T00:00:00+00:00',
// expirationDate: '2023-05-31T00:00:00+00:00'
// }
open development shell by root user. and you will change owner of mouted files.
docker-compose run --rm -u 0 node sh
# npm install
# chown node:node -R .
open development shell by node user.
docker-compose run --rm node sh
-
com
-
net
-
org
-
edu
-
gov [not tested yet]
-
mil [not tested yet]
-
int
-
info
-
biz
-
name [not tested yet]
-
pro
-
museum
-
aero
-
coop
-
jobs [not tested yet]
-
travel [not tested yet]
-
mobi [not tested yet]
-
cat [not tested yet]
-
asia
-
tel
-
xxx [not tested yet]
-
post [not tested yet]
-
ac
-
ad [not tested yet]
-
ae [not tested yet]
-
af [not tested yet]
-
ag [not tested yet]
-
ai [not tested yet]
-
al [not tested yet]
-
am [not tested yet]
-
an [not tested yet]
-
ao [not tested yet]
-
aq [not tested yet]
-
ar [not tested yet]
-
as [not tested yet]
-
at [not tested yet]
-
au
-
aw [not tested yet]
-
ax [not tested yet]
-
az [not tested yet]
-
ba [not tested yet]
-
bb [not tested yet]
-
bd [not tested yet]
-
be [not tested yet]
-
bf [not tested yet]
-
bg [not tested yet]
-
bh [not tested yet]
-
bi [not tested yet]
-
bj [not tested yet]
-
bl [not tested yet]
-
bm [not tested yet]
-
bn [not tested yet]
-
bo [not tested yet]
-
bq [not tested yet]
-
br
-
bs [not tested yet]
-
bt [not tested yet]
-
bv [not tested yet]
-
bw [not tested yet]
-
by [not tested yet]
-
bz [not tested yet]
-
ca
-
cc [not tested yet]
-
cd [not tested yet]
-
cf [not tested yet]
-
cg [not tested yet]
-
ch [not tested yet]
-
ci [not tested yet]
-
ck [not tested yet]
-
cl [not tested yet]
-
cm [not tested yet]
-
cn
-
co
-
cr [not tested yet]
-
cu [not tested yet]
-
cv [not tested yet]
-
cw [not tested yet]
-
cx [not tested yet]
-
cy [not tested yet]
-
cz [not tested yet]
-
de
-
dj [not tested yet]
-
dk [not tested yet]
-
dm [not tested yet]
-
do [not tested yet]
-
dz [not tested yet]
-
ec [not tested yet]
-
ee
-
eg [not tested yet]
-
eh [not tested yet]
-
er [not tested yet]
-
es [not tested yet]
-
et [not tested yet]
-
eu [not tested yet]
-
fi
-
fj [not tested yet]
-
fk [not tested yet]
-
fm [not tested yet]
-
fo [not tested yet]
-
fr
-
ga [not tested yet]
-
gb [not tested yet]
-
gd [not tested yet]
-
ge [not tested yet]
-
gf [not tested yet]
-
gg [not tested yet]
-
gh [not tested yet]
-
gi [not tested yet]
-
gl [not tested yet]
-
gm [not tested yet]
-
gn [not tested yet]
-
gp [not tested yet]
-
gq [not tested yet]
-
gr [not tested yet]
-
gs [not tested yet]
-
gt [not tested yet]
-
gu [not tested yet]
-
gw [not tested yet]
-
gy [not tested yet]
-
hk [not tested yet]
-
hm [not tested yet]
-
hn [not tested yet]
-
hr [not tested yet]
-
ht [not tested yet]
-
hu [not tested yet]
-
id
-
ie [not tested yet]
-
il [not tested yet]
-
im [not tested yet]
-
in
-
io [not tested yet]
-
iq [not tested yet]
-
ir [not tested yet]
-
is
-
it [not tested yet]
-
je [not tested yet]
-
jm [not tested yet]
-
jo [not tested yet]
-
jp
-
ke [not tested yet]
-
kg
-
kh [not tested yet]
-
ki [not tested yet]
-
km [not tested yet]
-
kn [not tested yet]
-
kp [not tested yet]
-
kr
-
tk
-
us
-
ru
-
uk
-
nl
-
pl
-
sk
-
se
-
tv