A simple WHOIS client for NodeJS
CoffeeScript Makefile
Latest commit ea5aa78 Sep 2, 2016 @hjr265 Bump version
Permalink
Failed to load latest commit information.
.gitignore Initial commit Feb 14, 2014
.npmignore Add Makefile May 31, 2014
LICENSE
Makefile Added test target to Makefile. Jul 15, 2014
README.md Update README.md Jul 19, 2016
index.coffee Close connection on timeout; resolves #33 Sep 2, 2016
package.json
servers.json It will output result of jp tld in English. Aug 17, 2016
test.coffee It will output result of jp tld in English. Aug 17, 2016

README.md

Node WHOIS

Build Status

Node WHOIS is a WHOIS client for Node.js.

Installation

Global

$ npm install -g whois

Usage

whois [options] address

Options:
  -s, --server   whois server                         [default: null]
  -f, --follow   number of times to follow redirects  [default: 0]
  -v, --verbose  show verbose results                 [default: false]
  -h, --help     display this help message            [default: false]

Local

$ npm install whois

Usage

var whois = require('whois')
whois.lookup('google.com', function(err, data) {
    console.log(data)
})

You may pass an object in between the address and the callback function to tweak the behavior of the lookup function:

{
    "server":  "",   // this can be a string ("host:port") or an object with host and port as its keys; leaving it empty makes lookup rely on servers.json
    "follow":  2,    // number of times to follow redirects
    "timeout": 0,    // socket timeout, excluding this doesn't override any default timeout value
    "verbose": false // setting this to true returns an array of responses from all servers
}

Contributing

Contributions are welcome.

License

Node WHOIS is available under the BSD (2-Clause) License.