whois-es6

1.2.0 • Public • Published

Node WHOIS

Node WHOIS is a WHOIS client for Node.js.

Installation

    $ npm install whois-es6

Usage

import { lookup } from 'whois-es6'
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
	"bind": null     // bind the socket to a local IP address
	"proxy": {       // (optional) SOCKS Proxy
		"host": "",
		"port": 0,
		"type": 5    // or 4
	}
}

Contributing

Contributions are welcome.

License

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

Attribution

  • WHOIS: The original node WHOIS that this is based on

This repo was started to fix punycode deprecation for a person project.

Readme

Keywords

Package Sidebar

Install

npm i whois-es6

Weekly Downloads

1

Version

1.2.0

License

FreeBSD

Unpacked Size

41.6 kB

Total Files

8

Last publish

Collaborators

  • tannerkc