UNPKG

tld-list

Version:

A list of all valid top-level domains and is updated from time to time.

38 lines (21 loc) 1.06 kB
# tld-list > A list of all valid top-level domains and is updated from time to time. [![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/tld-list/blob/master/LICENSE) [![build:?](https://img.shields.io/travis/mock-end/tld-list/master.svg?style=flat-square)](https://travis-ci.org/mock-end/tld-list) A list of all valid top-level domains is maintained by the [IANA](http://www.iana.org/) and is updated from time to time. Click [here](http://data.iana.org/TLD/tlds-alpha-by-domain.txt) to view the list. ## Install ``` $ npm install --save tld-list ``` ## Usage ```js var tlds = require('tld-list'); console.log(tlds); ``` ## Related - [random-tld](https://github.com/mock-end/random-tld) - Return a random tld. - [pick-item](https://github.com/mock-end/pick-item) - Randomly sampling a item from an array. ## Contributing Pull requests and stars are highly welcome. For bugs and feature requests, please [create an issue](https://github.com/mock-end/tld-list/issues/new).