is-tld
v1.0.2
Published
Returns true if a value is a top-level domain
Downloads
22
Readme
is-tld
Returns true
if a value is a top-level domain
Installation
npm install --save is-tld
Usage
const isTld = require('is-tld')
isTld('com') // true
isTld('_') // false
Credits
tld-list A list of all valid top-level domains updated from time to time.