Returns true if a value is a top-level domain
npm install --save is-tldconst isTld = require('is-tld')
isTld('com') // true
isTld('_') // falsetld-list A list of all valid top-level domains updated from time to time.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Returns true if a value is a top-level domain
npm install --save is-tldconst isTld = require('is-tld')
isTld('com') // true
isTld('_') // falsetld-list A list of all valid top-level domains updated from time to time.