# node-whois

> A WHOIS client for NodeJS

Latest version **2.1.3** (published 2015-09-20) · FreeBSD license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install node-whois
pnpm add node-whois
yarn add node-whois
bun add node-whois
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2015-09-20 |
| First published | 2013-03-30 |
| Weekly downloads | 0 |
| License | FreeBSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 262 |
| Author | Mahmud Ridwan |
| Maintainers | hjr265 |
| Keywords | whois |

## Links

- npm: https://www.npmjs.com/package/node-whois
- Repository: https://github.com/hjr265/node-whois
- Issues: https://github.com/hjr265/node-whois/issues
- npm.io page: https://npm.io/package/node-whois

## Dependencies (2)

- [optimist](https://npm.io/package/optimist.md) ^0.6.1
- [underscore](https://npm.io/package/underscore.md) ~1.5.2

## Recent versions

- 2.1.3 (latest) — 2015-09-20
- 2.1.2 — 2015-08-10
- 2.1.1 — 2015-08-10
- 2.1.0 — 2014-08-31
- 2.0.11 — 2014-07-15
- 2.0.10 — 2014-07-04
- 2.0.9 — 2014-07-01
- 2.0.8 — 2014-06-19
- 2.0.7 — 2014-06-17
- 2.0.6 — 2014-06-15
- 2.0.4 — 2014-06-06
- 2.0.3 — 2014-06-04
- 2.0.2 — 2014-06-01
- 2.0.1 — 2014-05-31
- 2.0.0 — 2014-05-31
- … 11 more at https://npm.io/package/node-whois/versions

## README

# Node-whois

[![Build Status](https://drone.io/github.com/hjr265/node-whois/status.png)](https://drone.io/github.com/hjr265/node-whois/latest)

Node-whois is a WHOIS client for Node.js.

## Installation

    $ npm install node-whois

## Usage

```js
var whois = require('node-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
}
```

## Contributing

Contributions are welcome.

## License

Node-whois is available under the [BSD (2-Clause) License](http://opensource.org/licenses/BSD-2-Clause).

---
_Source: https://npm.io/package/node-whois · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
