{"library":"better-lookup","type":"library","category":null,"description":"An async DNS lookup function for Node.js that implements atomic cache operations using throttling to ensure only one write-procedure occurs for concurrent requests. Current stable version is 1.4.1, with regular updates. Unlike alternatives like cacheable-lookup or dns-lookup-cache, it guarantees atomicity and supports /etc/hosts file on both Unix and Windows. Ships TypeScript types and requires Node.js >=14.","language":"javascript","status":"active","version":"1.4.1","tags":["javascript","dns","lookup","atomic","async","cache","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install better-lookup","imports":["import { lookup } from 'better-lookup'","import { install } from 'better-lookup'","import { AddressInfo } from 'better-lookup'"]},{"cmd":"yarn add better-lookup","imports":[]},{"cmd":"pnpm add better-lookup","imports":[]}],"homepage":"https://github.com/ayonli/better-lookup#readme","github":"https://github.com/ayonli/better-lookup","docs":null,"changelog":null,"pypi":null,"npm":"better-lookup","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}