is-tld

1.0.2 • Public • Published

is-tld

Build Status npm version

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.

Readme

Keywords

Package Sidebar

Install

npm i is-tld

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • fridays