{"library":"dns-over-http-resolver","type":"library","category":null,"description":"This package provides an isomorphic (browser and Node.js) DNS over HTTP (DoH) resolver, leveraging the `fetch` API for network requests. It offers an API interface designed to be compatible with Node.js's built-in `dns.promises` API, simplifying migration or usage in environments where a native DNS resolver is desired but not available or insufficient. The current stable version is 3.0.16, with releases occurring roughly monthly or bi-monthly, primarily for dependency updates and minor improvements. Key differentiators include its `fetch`-based approach, built-in caching (configurable `maxCache`), and the ability to specify custom DoH servers, making it flexible for various privacy and performance requirements beyond the default Cloudflare and Google servers. It ships with TypeScript types, enhancing developer experience and type safety.","language":"javascript","status":"active","version":"3.0.16","tags":["javascript","dns","doh","http","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install dns-over-http-resolver","imports":["import { DnsOverHttpResolver } from 'dns-over-http-resolver'","const resolver = new DnsOverHttpResolver(); await resolver.resolve4('example.com')","<script src=\"https://unpkg.com/dns-over-http-resolver/dist/index.min.js\"></script>\n// Then access via: const resolver = new DnsOverHttpResolver.DnsOverHttpResolver();"]},{"cmd":"yarn add dns-over-http-resolver","imports":[]},{"cmd":"pnpm add dns-over-http-resolver","imports":[]}],"homepage":null,"github":"https://github.com/vasco-santos/dns-over-http-resolver","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dns-over-http-resolver","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/dns-over-http-resolver/compatibility"}}