Skip to content

chrisvogt/is-gtld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-gtld Build Status codecov

Check if a value is a valid gTLD

Install

$ npm install is-gtld

Usage

const isGTLD = require('is-gtld');

isGTLD('xyz');
//=> 'true'

API

isGTLD(input)

input

Type: string

The gTLD or domain name extension to check.

Related

License

MIT © Chris Vogt