1.0.1 • Published 8 years ago

checking v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

checking

checking

This package allows you to check the availability of a domain name using the whoisxmlapi api.

Installation

 $ npm install checking

How does it work

whoisxmlapi allows you to make free 50 queries, but if you sign up, you can get 500 free queries. You also can buy more balance if you need to.

  var checking = require('checking');
  
  /* specifying your whoisxmlapi username and password is optional */
  checking.username = 'MY USERNAME'
  checking.password = '******'
  
  checking.check('domain.com', function (error, available) {
    if(error) return console.log(error);
    if(available) {
      console.log('domain.com is available');
    } else {
      console.log('No chance!');
    }
  })