JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4417
  • Score
    100M100P100Q135253F
  • License ISC

A library to generate chains of trust proving DNS records via DNSSEC

Package Exports

  • @ensdomains/dnsprovejs
  • @ensdomains/dnsprovejs/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ensdomains/dnsprovejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

dnsprove.js

A TypeScript/JavaScript library for querying and validating DNSSEC data from DNS.

Installing

bun add @ensdomains/dnsprovejs

Usage

import { DNSProver } from '@ensdomains/dnsprovejs'
const prover = DNSProver.create('https://cloudflare-dns.com/dns-query')
const result = await prover.queryWithProof('TXT', textDomain)

API

Please refer to the doc

Testing

bun test