hns-domain-ttr

1.0.1 • Public • Published

hns-domain-ttr

check whether a domain has been rolled out for Handshake registering

install

$ npm install -g hns-domain-ttr

cli

$ hns-domain-ttr <domain-name>

node.js

const ttr = require('hns-domain-ttr')

const timeToRollout = ttr('foo')

if (!timeToRollout) { // returns 0 when it has rolled out
  console.log('it has rolled out')
} else { // or the time in milliseconds until the rollout
  console.log('time to rollout:', timeToRollout)
}

notes

i still haven't figured out the exact algorithm that calculates the rollout time but this seems to work approximately well, sooooo, if someone knows the right math please provide a PR! :)

donate

coin wallet
bitcoin (BTC) 3LV3Gpgg75exSPdyEzwPb2BFeVpdXp51rX
handshake (HNS) hs1qpaa2xsk74dqvecrcgf8llceysqxp09lzqwvz76

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i hns-domain-ttr

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.22 kB

Total Files

3

Last publish

Collaborators

  • stagas