domain-check is a node module using promises allowing to check if a domain is free to register or not
Installation
npm install domain-check --saveyarn add domain-checkbower install domain-check --save
Usage
To check if a domain is free you can create a new Domain
object...
const domainCheck = ;const Domain = domainCheckDomain; ... const domain = 'google.de';console;
or use the static method isFree
of the Domain class
const Domain = Domain; ... const isFree = await Domain; console;
Known issues
It might be that the module shows an registered domain as available to register. This is because the underlying library node-whois can not handle newer tlds. A fix is in progress.