Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 710 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 710 Bytes

mojodns javascript client

npm version

JavaScript client for https://mojodns.com/

Supported Runtimes

This Driver supports and is tested on:

  • Node.js
    • LTS
    • Stable
  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Using the Client

Installation

Node.js

npm install --save mojodns

or

yarn add mojodns

Usage

import MojodnsClient from "mojodns";

const client = new MojodnsClient("your-api-key");

const response = await client.GetA("google.com");

response.answerResourceRecords.forEach((answer) => {
  console.log(JSON.Stringify(answer));
});