{"_id":"dns-caching","_rev":"13-d2c72abce043258ad45dd6d52238129e","name":"dns-caching","dist-tags":{"latest":"0.2.9"},"versions":{"0.1.1":{"name":"dns-caching","version":"0.1.1","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.1.1","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"7a1c7f848ea0689925813ad516b47518935be241","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.1.1.tgz","fileCount":6,"integrity":"sha512-O7aCDuNbFJMQKOQFUKSkcirpzwL6k4U7+zU5kupwWnUWkViwB42xg+q1K4Jiw8Sv26pTjLj0hbGExhe4cUeOcg==","signatures":[{"sig":"MEUCIQDutBYpcsZ8LcHWbyUw/m9JRq8Zo1ZctvOV5WayYLqeugIgXz1YuYzx5dyIvfenhJ6zgub6tE+lsoII9z+7eO0GqfU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":101838},"main":"index.js","type":"module","exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"321be75bbf916acf854c29566d2b9e7d0e551aba","scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"gauthier-th","actor":{"name":"gauthier-th","type":"user","email":"tho.gauthier@outlook.fr"},"email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.2","directories":{},"_nodeVersion":"22.16.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^24.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.1.1_1750256799971_0.20992577665897416","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"dns-caching","version":"0.1.2","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.1.2","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"39c2f2228516d6cb996a2cd91efe143749d2d263","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.1.2.tgz","fileCount":7,"integrity":"sha512-tIM/h00dgQsO/EBO0pmblgj3B3dooXaeLBZPQpZ+KEdLw6Gxx2pKLgqa4Hau5/8+wkWV7VJ5TCzCHXgzbwNXMA==","signatures":[{"sig":"MEYCIQDbyPp1Xehs7ce8U22bt9SqVSCtpgeH4H7oqXBV98JAMwIhAMoIfq9LgQRQSiJ4vEIqHNVyl6PzmSumVq7PfGHYxfOu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":110665},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"e1d9e01978166559e6f3a57b87196cd4786cf1af","scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"gauthier-th","actor":{"name":"gauthier-th","type":"user","email":"tho.gauthier@outlook.fr"},"email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.2","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^24.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.1.2_1750325112187_0.25788239851753336","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"dns-caching","version":"0.1.3","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.1.3","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"6e733420d7bd5793bbf0da1652c92dccb26f2783","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.1.3.tgz","fileCount":8,"integrity":"sha512-uLDVeq546NuvS5bx3uLSnz38yNoR90UPP7+jlyL93z9OYkVIIk+ky5I+5VowVQ/I54C/rfF7DiUXzJPivmk5mw==","signatures":[{"sig":"MEUCIE3deIoG/Bw9Q1L6xrloCh/71svTXem9Thczc8MvzMjlAiEAg3um2MxF4KXBSEHDvitU5dasp8A8k8Rde0utpkwxeqk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":113023},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"bcf9bddca2124200133323d5a7d8c96991464e80","scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"gauthier-th","actor":{"name":"gauthier-th","type":"user","email":"tho.gauthier@outlook.fr"},"email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.2","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^24.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.1.3_1750325804830_0.2885813255974212","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"dns-caching","version":"0.2.0","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.0","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"5c54a35e2ae13e3a8dfeb48b3633c55ad85cc47c","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.0.tgz","fileCount":8,"integrity":"sha512-l63bT7gVvVCWmPBOZ6RK1bDafp/FaIN6bFsL7ETwPvX6gus1teT/MgvVi7+5Teg/CMSxPCpcBYjsqVd1qZrQPQ==","signatures":[{"sig":"MEUCIFqX8HXsSckUNnhMFwsCe3P9UMPQP9wQjjkVdl1MzKbnAiEAzv0do1IFC0Xl1fsbjgTLyDsFZir7EuFPF3Hyzp1Y5eg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":114220},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"163a6d93768a645cd988b3a74642f85b1f689ab9","scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"gauthier-th","actor":{"name":"gauthier-th","type":"user","email":"tho.gauthier@outlook.fr"},"email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.2","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^24.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.0_1750424822234_0.4960804634760536","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"dns-caching","version":"0.2.1","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.1","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"fc95b196a29922be220c69dd41858bf31f13f526","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.1.tgz","fileCount":8,"integrity":"sha512-0A/N8cxOeLK9LjcHP3O6DNZb4hNJwO3gf6LxFE+JRH5fNqHXrlbNDtEaObma6tskhsfOQhyANs/TnF21BjVMLw==","signatures":[{"sig":"MEUCIQDh1OeWhCmWu8mo7fzyWRWxW/af7rc1o7nOpxEsRmTMNgIgMQ3Eoht3Bb1a8fnuneTFrNMxmHOrWVvr6qdcWG9rmrw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":114318},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"eff971234305d257a000d1e30554241447b16126","scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"gauthier-th","actor":{"name":"gauthier-th","type":"user","email":"tho.gauthier@outlook.fr"},"email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.2","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^24.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.1_1750460392837_0.6007992053133293","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"dns-caching","version":"0.2.2","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.2","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"ec94cfbc95da0402fabed8fb48fe1f67b4f23d86","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.2.tgz","fileCount":8,"integrity":"sha512-sodaHe4w1hDPSsoh/ULuMP3x7C88fbGlBa6dUkNf5nf5085gxIhDkObpboGC7QnAIPE3O9k6rd6vGWLhBENNUQ==","signatures":[{"sig":"MEUCIA6s0m8/Yij/6MKo8xSNABqc1Ask4iNp8scb9UCcW0RfAiEAnl0CUfyWljHfZCwPkftbPoaRH6NwfsTXsf8ezsUI+rk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":114352},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"6c02e4ad73e52f512ade9b5cbcb648faf0089f93","scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"gauthier-th","actor":{"name":"gauthier-th","type":"user","email":"tho.gauthier@outlook.fr"},"email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.2","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^24.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.2_1750878226354_0.4155320185735172","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"dns-caching","version":"0.2.3","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.3","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"1cfb46df3c9f8ac613163c57e50503c268f69c0e","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.3.tgz","fileCount":8,"integrity":"sha512-DbQEIsoOfKXCh2h20q85ccZKXwsR/uKvhHN7n47cglsPysKHhWIWlkOZ7dDXR0j/3wWi9VgpTslotHgRf/AOZA==","signatures":[{"sig":"MEQCIFz4J6opdTFko/+Ya3+4qOH1Lg/tolEgBFEluBjnCfEKAiBBcZ/lgwe+2uwso/DYlGDMGNji3Wj8SX9XN+RqYCpcyw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":106423},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"9c2cd7f86f479073868e70d5efc713568419c99a","scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.2","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^24.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.3_1754421957736_0.13551826529630429","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"dns-caching","version":"0.2.4","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.4","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"e3617b0f09d87199c293119aca0e28f322d0dcc3","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.4.tgz","fileCount":13,"integrity":"sha512-J48CLnMScOAtWIdExkz+522A0nPUwG5o+w7vVsXBJDipVLugCnps5AVJMn9bOkqQm4GarHtutMHYJEryCTeMjA==","signatures":[{"sig":"MEQCIFTkfTph+mpbBHtuSdkkMnalx9cej5wytfG3fBbvVmLOAiB3Upw+3T6E4ib2miqeqiSJjmpFcc/HM9KTefZCvziDWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":131417},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"00e25af7bb3f9ffedd96084812364625dfbb476b","scripts":{"test":"sudo docker compose  -f compose.test.yml up --no-log-prefix --abort-on-container-exit","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.json"},"_npmUser":{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.3","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.18.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.5","ts-jest":"^29.4.1","typescript":"^5.8.3","@types/node":"^24.0.3","@jest/globals":"^30.0.5"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.4_1755006823407_0.45963593862006413","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"dns-caching","version":"0.2.5","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.5","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"ce37ead7e05ca902f30d896749c9aa7f86c288e9","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.5.tgz","fileCount":13,"integrity":"sha512-1cnB6i/OG4zfYbRnDjWZDT+FGLvOBuJlFIxVZvHBiaa62SCfaGoP4Si50O14HyoHmx1gadeGWigYXdX5LQAFvg==","signatures":[{"sig":"MEUCIQDBwttWcZt+OOMYSfEDDod5FvCeewKu6ETY5mOwx0fGIAIgbgDLtVs/OczbKSCaMBKwcR79hCCq1LpYkmS4aw7ej2o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":131520},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"2256cf3b3fcd12c84c30bc2af1dc6dc88dee545d","scripts":{"test":"sudo docker compose  -f compose.test.yml up --no-log-prefix --abort-on-container-exit","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.json"},"_npmUser":{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.3","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.18.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.5","ts-jest":"^29.4.1","typescript":"^5.8.3","@types/node":"^24.0.3","@jest/globals":"^30.0.5"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.5_1755642207257_0.13646449346947054","host":"s3://npm-registry-packages-npm-production"}},"0.2.6":{"name":"dns-caching","version":"0.2.6","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.6","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"b37b6aee67e98cc50f737afa21a1bf6ba34df814","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.6.tgz","fileCount":13,"integrity":"sha512-ndfwU7hAWzNTbXLggcJDMwNzpDcUUoEtUqlHFBFRmnRT5jenPpATbVU+gsFBFVU0cs4Wites+mOAn4bcqlHFQQ==","signatures":[{"sig":"MEUCIQDi/pjDzlJrWFmQMpjldwZXx+aaYXJ4FNsinh/S1Sr+rQIgAuIECMX5uphTNGX7bIjzIbBgxNnbh8sr9XLdEyUVhRs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150320},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"5e442663e0d055f47eb4d697eef136189f504c35","scripts":{"test":"sudo docker compose  -f compose.test.yml up --no-log-prefix --abort-on-container-exit","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.json"},"_npmUser":{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.3","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.19.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.5","ts-jest":"^29.4.1","typescript":"^5.8.3","@types/node":"^24.0.3","@jest/globals":"^30.0.5"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.6_1758107900304_0.16866815775942157","host":"s3://npm-registry-packages-npm-production"}},"0.2.7":{"name":"dns-caching","version":"0.2.7","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.7","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/jellyseerr/dns-caching#readme","bugs":{"url":"https://github.com/jellyseerr/dns-caching/issues"},"dist":{"shasum":"7743a05c44b13be7cac95698b9d487781fa05b9e","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.7.tgz","fileCount":13,"integrity":"sha512-48fgJWH9aUHPN+TOmbozx1hxX9YoCsEkZzR/wHKRFPFx0NZtmSgtZY3M0Vsl7x/fDcq3mCI3SMgyTKVgZZrogg==","signatures":[{"sig":"MEYCIQCgypRK16OfcLZajDcFyIcRW0MmpaLDQKxy2N9mgtZiQwIhAO2ExuGHNS0FErlSneHcOOh+1zSt4KxKrIswo0MgP4KO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150754},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"e9421cb586e02b9a27eb06e9b58326635ed2d365","scripts":{"test":"sudo docker compose  -f compose.test.yml up --no-log-prefix --abort-on-container-exit","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.json"},"_npmUser":{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/jellyseerr/dns-caching.git","type":"git"},"_npmVersion":"10.9.3","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.19.0","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.5","ts-jest":"^29.4.1","typescript":"^5.8.3","@types/node":"^24.0.3","@jest/globals":"^30.0.5"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.7_1758194441115_0.8368189559877866","host":"s3://npm-registry-packages-npm-production"}},"0.2.9":{"name":"dns-caching","version":"0.2.9","keywords":["dns","caching","cache"],"author":"","license":"MIT","_id":"dns-caching@0.2.9","maintainers":[{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"}],"homepage":"https://github.com/seerr-team/dns-caching#readme","bugs":{"url":"https://github.com/seerr-team/dns-caching/issues"},"dist":{"shasum":"af69f8e646c75e8212cc9f49b51b7f44b8b60b75","tarball":"https://registry.npmjs.org/dns-caching/-/dns-caching-0.2.9.tgz","fileCount":13,"integrity":"sha512-FSvmI/dC/HXYIyX2m7MvQt36Yut49GCw3hWaDqaTgLLmKyLs5lmv/jhmNKqWjSF2vRGTgFYL0G3mwcjLlKXj0w==","signatures":[{"sig":"MEUCIQC1+g6A6E/SZaCZNuL2w3ttjIiogS1Mb21a5BsAPt/l0AIgWAs33SMNjcnUy99FOygAqWjnaP5nLvwAOLDbC4u4VUs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dns-caching@0.2.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":152023},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"721ce0fbab13db94004f6b3aa6d2264bbf73a0ae","scripts":{"test":"sudo docker compose  -f compose.test.yml up --no-log-prefix --abort-on-container-exit","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.json"},"_npmUser":{"name":"gauthier-th","email":"tho.gauthier@outlook.fr"},"repository":{"url":"git+https://github.com/seerr-team/dns-caching.git","type":"git"},"_npmVersion":"10.9.4","description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","directories":{},"_nodeVersion":"22.21.1","dependencies":{"lru-cache":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.5","ts-jest":"^29.4.1","typescript":"^5.8.3","@types/node":"^24.0.3","@jest/globals":"^30.0.5"},"_npmOperationalInternal":{"tmp":"tmp/dns-caching_0.2.9_1765230869539_0.8776594179082933","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-06-18T14:26:39.868Z","modified":"2026-01-25T17:13:51.950Z","0.1.1":"2025-06-18T14:26:40.163Z","0.1.2":"2025-06-19T09:25:12.361Z","0.1.3":"2025-06-19T09:36:45.020Z","0.2.0":"2025-06-20T13:07:02.385Z","0.2.1":"2025-06-20T22:59:53.013Z","0.2.2":"2025-06-25T19:03:46.526Z","0.2.3":"2025-08-05T19:25:57.944Z","0.2.4":"2025-08-12T13:53:43.564Z","0.2.5":"2025-08-19T22:23:27.444Z","0.2.6":"2025-09-17T11:18:20.500Z","0.2.7":"2025-09-18T11:20:41.289Z","0.2.9":"2025-12-08T21:54:29.680Z"},"bugs":{"url":"https://github.com/seerr-team/dns-caching/issues"},"license":"MIT","homepage":"https://github.com/seerr-team/dns-caching#readme","keywords":["dns","caching","cache"],"repository":{"url":"git+https://github.com/seerr-team/dns-caching.git","type":"git"},"description":"A small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.","maintainers":[{"email":"hello@fallenbagel.com","name":"fallen.bagel"},{"email":"tho.gauthier@outlook.fr","name":"gauthier-th"}],"readme":"# dns-caching\n\nA small package to cache DNS lookups in Node.js, with support for custom DNS servers and TTL (time-to-live) settings.\n\n![GitHub repo size](https://img.shields.io/github/repo-size/seerr-team/dns-caching) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/seerr-team/dns-caching/tests.yml?label=tests) [![NPM](https://img.shields.io/npm/v/dns-caching.svg)](https://www.npmjs.com/package/dns-caching) ![npm](https://img.shields.io/npm/dt/dns-caching) ![GitHub](https://img.shields.io/github/license/seerr-team/dns-caching) ![npm package minimized gzipped size](https://img.shields.io/bundlejs/size/dns-caching) \n\n## Install\n\n| Package Manager | Command |\n|---|---|\n| NPM | `npm i dns-caching` |\n| Yarn | `yarn add dns-caching` |\n| PNPM | `pnpm add dns-caching` |\n\n## Usage\n\n### Basic Setup\n\nImport the DnsCacheManager and initialize it with optional configurations:\n\n```javascript\nimport DnsCacheManager from 'dns-caching';\n\nconst dnsCacheManager = new DnsCacheManager({\n  cacheMaxEntries: 500, // Optional: Maximum number of entries in the cache\n  forceMaxTtl: -1,      // Optional: Maximum TTL for cached entries in ms (-1 = no limit)\n  forceMinTtl: 0,       // Optional: Minimum TTL for cached entries in ms\n  maxRetries: 3,        // Optional: Maximum number of retries for DNS lookup\n  logger: console,      // Optional: Custom logger\n});\n```\n\n### Initialization\n\nInitialize the DNS cache manager to override the default dns.lookup function:\n\n```javascript\ndnsCacheManager.initialize();\n```\n\nThis will intercept all DNS lookups made using the `dns` module and cache the results.\n\n### Performing DNS Lookups\n\nUse the lookup method to perform DNS lookups with caching:\n\n```javascript\nasync function performLookup(hostname) {\n  try {\n    const result = await dnsCacheManager.lookup(hostname);\n    console.log(`DNS Lookup Result for ${hostname}:`, result);\n  } catch (error) {\n    console.error(`DNS Lookup Error for ${hostname}:`, error);\n  }\n}\n\nperformLookup('example.com');\n```\n\n### Getting Cache Statistics\n\nRetrieve statistics about the cache performance:\n\n```javascript\nconst stats = dnsCacheManager.getStats();\nconsole.log('Cache Statistics:', stats);\n```\n\n### Clearing the Cache\n\nClear the DNS cache for a specific hostname or for all entries:\n\n```javascript\n// Clear cache for a specific hostname\ndnsCacheManager.clearHostname('example.com');\n\n// Clear the entire cache\ndnsCacheManager.clear();\n```\n\n### Handling Network Errors\n\nReport network errors to the DNS cache manager to handle address switching:\n\n```javascript\ndnsCacheManager.reportNetworkError('example.com');\n```\n\n### Advanced Configuration\n\nFor advanced use cases, you can customize the behavior of the DNS cache manager by providing a custom logger or adjusting the retry logic:\n\n```javascript\nconst customLogger = {\n  debug: (message, meta) => console.debug(message, meta),\n  error: (message, meta) => console.error(message, meta),\n};\n\nconst customDnsCacheManager = new DnsCacheManager({\n  logger: customLogger,\n  maxRetries: 3,\n});\n```\n\nThis setup will help you efficiently manage DNS lookups with caching, improving the performance and reliability of your application.\n\n## Credits\n\nCreated by [fallenbagel](https://github.com/fallenbagel) and packaged by [gauthier-th](https://github.com/gauthier-thc)\n\n## License\n\nMIT © [Seerr Team](https://github.com/seerr-team)\n","readmeFilename":"README.md"}