# domain-digger

> A library for digging data about domains and network services

Latest version **0.0.3** (published 2016-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install domain-digger
pnpm add domain-digger
yarn add domain-digger
bun add domain-digger
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-12-01 |
| First published | 2016-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yegor Chuperka |
| Maintainers | yechuperka |
| Keywords | whois, dns, lookup, dig, domain, traceroute |

## Links

- npm: https://www.npmjs.com/package/domain-digger
- Repository: https://github.com/y4uperka/domain-digger
- Homepage: https://github.com/y4uperka/domain-digger#readme
- Issues: https://github.com/y4uperka/domain-digger/issues
- npm.io page: https://npm.io/package/domain-digger

## Recent versions

- 0.0.3 (latest) — 2016-12-01
- 0.0.2 — 2016-11-30
- 0.0.1 — 2016-11-29

## README

[![Build Status](https://travis-ci.org/y4uperka/domain-digger.svg?branch=master)](https://travis-ci.org/y4uperka/domain-digger)
[![npm version](https://badge.fury.io/js/domain-digger.svg)](https://badge.fury.io/js/domain-digger)
[![Code Climate](https://codeclimate.com/github/y4uperka/domain-digger/badges/gpa.svg)](https://codeclimate.com/github/y4uperka/domain-digger)

# What is it
A library for Node.JS that can be used for the following tasks:

1. Get domain's whois info
2. Domain DNS lookup
3. Build a route to a domain or IP addrr (based on a traceroute utility)
4. Scan remote service, very primitive and simple for now.

It is written using TypeScript so you can find custom data types definitions in *.d.ts files.

# How to use?
```js
var dodig = require('domain-digger');
// WHOIS
dodig
    .whois('google.com')
    .then(
        function(response) {
            console.log(response);
        }
    )
    .catch(
        function(err) {
            console.log(err);
        }
    );
// DNS LOOKUP
dodig
    .lookup('google.com')
    .then(
        function(data) {
            // Data is object(parsed), you can see it's interface in source code
            console.log(data);
        }
    );
// Traceroute
dodig
    .traceroute('google.com')
    .then(
        function(data) {
            // Data is object(parsed), you can see it's interface in source code
            console.log(data);
        }
    );
// Scan
dodig
    // Host, port, request string, signature of data end
    .scan('google.com', 80, 'HEAD / HTTP/1.1', '\r\n\r\n')
    .then(
        function(data) {
            // Data here is a string, remote service response.
            console.log(data);
        }
    );
```

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