{"library":"fetch-cached-dns","type":"library","category":null,"description":"Decorator for fetch that caches DNS resolutions per hostname, reducing DNS lookup overhead on repeated requests to the same host. Version 2.0.5 is the latest stable release; the project is a fork of @vercel/fetch-cached-dns with ongoing maintenance. Unlike other fetch wrappers, it transparently integrates with any fetch-compatible library (defaults to node-fetch) and handles redirects with an onRedirect callback. Suitable for high-throughput Node.js services where DNS latency is a bottleneck.","language":"javascript","status":"active","version":"2.0.5","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-cached-dns","imports":["const fetch = require('fetch-cached-dns')(require('node-fetch'))","const fetch = require('fetch-cached-dns')()","const fetch = require('fetch-cached-dns')(customFetch)"]},{"cmd":"yarn add fetch-cached-dns","imports":[]},{"cmd":"pnpm add fetch-cached-dns","imports":[]}],"homepage":"https://github.com/lamhieu-vk/fetch-cached-dns#readme","github":"https://github.com/lamhieu-vk/fetch-cached-dns","docs":null,"changelog":null,"pypi":null,"npm":"fetch-cached-dns","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}