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.
$ npm install gtlds
const gtlds = require('gtlds');
gtlds.random();
/*
{
"contractTerminated":false,
"gTLD":"google",
"registryOperator":"Charleston Road Registry Inc."
}
*/
Type: Array
gTLDs in alphabetical order.
Type: Array
gTLD names in alphabetical order.
Type: Function
Random gTLD.
A node script is available to sync gTLD data via npm run sync
. It will fetch, parse, and overwrite the gtlds.json file.
MIT © Chris Vogt