mojodns
v0.2.4
Published
JavaScript client for the MojoDNS API
Downloads
3
Readme
mojodns javascript client
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));
});