https://github.com/chrisvogt/is-gtld
Check if a value is a valid gTLD.
https://github.com/chrisvogt/is-gtld
check featured gtld icann tld validate
Last synced: 5 months ago
JSON representation
Check if a value is a valid gTLD.
- Host: GitHub
- URL: https://github.com/chrisvogt/is-gtld
- Owner: chrisvogt
- License: mit
- Created: 2018-10-14T06:59:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-14T07:10:16.000Z (over 7 years ago)
- Last Synced: 2025-10-24T02:32:27.697Z (8 months ago)
- Topics: check, featured, gtld, icann, tld, validate
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/is-gtld
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is-gtld [](https://travis-ci.org/chrisvogt/is-gtld) [](https://codecov.io/gh/chrisvogt/is-gtld?branch=master)
> Check if a value is a valid gTLD
## Install
```
$ npm install is-gtld
```
## Usage
```js
const isGTLD = require('is-gtld');
isGTLD('xyz');
//=> 'true'
```
## API
### isGTLD(input)
#### input
Type: `string`
The gTLD or domain name extension to check.
## Related
- [gtlds](https://github.com/chrisvogt/gtlds) - Get all gTLDs
## License
MIT © [Chris Vogt](http://github.com/chrisvogt/is-gtld)