0.0.2 • Published 10 years ago

cheeto v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

cheeto

  1. returns and or validates top level domains
  2. command line utility that lists and filters icann.org tlds alphabetically

npm.io

installation

npm install cheeto

usage

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]

command line

cheeto list will return all icann.org recognized tlds

cheeto char will return all tlds that start with char -- e.g. char d returns all tlds that start with 'd'

cheeto update will crawl icann.org servers and add any new tlds. It also logs some relevant data to the console.