fetch-dns
TypeScript icon, indicating that this package has built-in type declarations

1.0.3-rc.1 • Public • Published

fetch-dns

This is a drop-in replacement for Node's dns API. It uses the fetch API under the hood, so anywhere you have fetch, you can have the dns module.

It is left as an exercise for the reader to get this module to be returned when the code says require("dns").

Unimplemented Methods

There are two functions which are not implemented because I don't (yet) know a way to implement them using just the fetch API:

  • reverse
  • lookupService

Package Sidebar

Install

npm i fetch-dns

Weekly Downloads

1

Version

1.0.3-rc.1

License

Unlicense

Unpacked Size

144 kB

Total Files

38

Last publish

Collaborators

  • robertfischer