npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dnsdumpster

v1.0.5

Published

Created for dnsdumpster.com, this is an Unofficial API for fetching data from the website.

Downloads

9

Readme

DNSDumpster.com Unofficial JS API

Installation

You can install this Unofficial JS API from npm like this:

  1. Open your project and run command npm i dnsdumpster this will install the module.
  2. Use this code to initialize dnsdumpster class:
const dns = require('dnsdumpster');
const dnsPrivate = new dns();
  1. All done now you can call the function what you want from after this.

Installation for source

  1. Clone this repository
  2. Extract this files to your project
  3. Add this code to your project to initialize dnsdumpster class:
const dns = require('./dnsClass');
const dnsPrivate = new dns();
  1. All done now you can call the function of your choice after this.

Get Information about this package & DNSDumpster

dnsPrivate.info().then((info) => {
    console.log("\"" + info.name + "\"");
    console.log("\nDescription: " + info.description)
    console.log("\nVersion: " + info.version);
});

Get Information about domain

await dnsPrivate.get('google.com').then((results) => {
    if (results.success) {
        results.data.forEach((result) => {
            console.log(result);
        });
    } else {
        console.log(results);
    }
}).catch((err) => {
    console.log({ error: err });
});

Example output for that ^^

{
    "success": true,
    "data": [
        {
            "detail": "DNS Servers",
            "data": [
                {
                    "domain": "ns1.google.com",
                    "ip": "ipv4",
                    "provider": "GOOGLE"
                },
                {
                    "domain": "ns4.google.com",
                    "ip": "ipv4",
                    "provider": "GOOGLE"
                },
                {
                    "domain": "ns3.google.com",
                    "ip": "ipv4",
                    "provider": "GOOGLE"
                },
                {
                    "domain": "ns2.google.com",
                    "ip": "ipv4",
                    "provider": "GOOGLE"
                }
            ]
        },
        {
            "detail": "MX Records",
            "data": [
                {
                    "priority": "10",
                    "domain": "smtp.google.com",
                    "ip": "ipv4",
                    "provider": "GOOGLE"
                }
            ]
        },
        {
            "detail": "TXT Records",
            "data": [
                "apple-domain-example",
                "google-site-verification=example",
            ]
        },
        {
            "detail": "Host Records",
            "data": [
                {
                    "domain": "google.com",
                    "ip": "ipv4",
                    "provider": "GOOGLE"
                },
                {
                    "domain": "example.google.com",
                    "ip": "ipv4",
                    "provider": "GOOGLE"
                }
            ]
        }
    ]
}

Contributing

Welcome to the Unofficial DNSDumpster API! I appreciate your interest in contributing. Whether you want to report a bug, suggest a new feature, or submit improvements to the code.

Thank you for considering contributing to this project.