{"library":"cached-dns","type":"library","category":null,"description":"A lightweight DNS caching library for Node.js that wraps the built-in dns.lookup and dns.promises.lookup with a TTL-based cache. Current stable version is 0.0.4, released as a single module with TypeScript types. It provides a drop-in replacement for Node.js DNS resolution with configurable cache size and TTL. Key differentiators: same API as Node's dns module, supports callback and promise variants, optional global patching, and no external dependencies. Release cadence is low; package is minimal and focused.","language":"javascript","status":"active","version":"0.0.4","tags":["javascript","dns","cache","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cached-dns","imports":["import { lookup } from 'cached-dns'","import { lookupPromise } from 'cached-dns'","import { patchGlobal } from 'cached-dns'","import { CacheOptions } from 'cached-dns'"]},{"cmd":"yarn add cached-dns","imports":[]},{"cmd":"pnpm add cached-dns","imports":[]}],"homepage":"https://github.com/jamiees2/cached-dns","github":"https://github.com/jamiees2/cached-dns","docs":null,"changelog":null,"pypi":null,"npm":"cached-dns","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}