gtlds
gTLD utilities
A list of all gTLDs from the ICANN registry, including the registry operator and whether the gTLD has been terminated.
The list is a JSON file and can be used anywhere.
Install
$ npm install gtlds
Usage
const gtlds = ; gtlds;/*{ "contractTerminated":false, "gTLD":"google", "registryOperator":"Charleston Road Registry Inc."}*/
API
.all
Type: Array
gTLDs in alphabetical order.
.names
Type: Array
gTLD names in alphabetical order.
.random()
Type: Function
Random gTLD.
Updating
A node script is available to sync gTLD data via npm run sync
. It will fetch, parse, and overwrite the gtlds.json file.
License
MIT © Chris Vogt