cheeto
Version:
top level domain bot that returns and or validates url tlds -- command line utility as well
28 lines (17 loc) • 1.02 kB
Markdown
1. returns and or validates top level domains
2. command line utility that lists and filters [icann.org](http://data.iana.org/TLD/tlds-alpha-by-domain.txt) tlds alphabetically

npm install cheeto
```javascript
var cheeto = require('./cheeto').cheeto()
console.log(cheeto.get('http://npmjs.org')) // org
console.log(cheeto.isValid('http://nodeschool.io')) // true
console.log(cheeto.isValid(['is','http://nodejs.org','http://beepboop.net','cropdust'])) // [1,1,1,0]
```
<code>cheeto list</code> will **return** all [icann.org](http://data.iana.org/TLD/tlds-alpha-by-domain.txt) recognized **tlds**
<code>cheeto char</code> will **return** all tlds that start with **char** -- e.g. <code>char d</code> returns all tlds that start with 'd'
<code>cheeto update</code> will **crawl** [icann.org](http://data.iana.org/TLD/tlds-alpha-by-domain.txt) servers and **add** any new tlds. It also **logs** some relevant data to the console.