WHOIS client for Node.js
npm install whois-raw 
js
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:
`js
{
"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
"bind": null // bind the socket to a local IP address
"proxy": { // (optional) SOCKS Proxy
host: '118.190.206.111',
port: 9999,
userId: "optional",
password: "optional",
type: 5, // or 4
}
}
`
Tests
npm test`