{"versions":{"0.5.2":{"name":"fresh","description":"HTTP response freshness testing","version":"0.5.2","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","keywords":["fresh","http","conditional","cache"],"repository":{"type":"git","url":"git+https://github.com/jshttp/fresh.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.7.0","eslint-plugin-markdown":"1.0.0-beta.6","eslint-plugin-node":"5.1.1","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint --plugin markdown --ext js,md .","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"02df6303ff260b6b7da0b479f3e42222e8157b47","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh#readme","_id":"fresh@0.5.2","_shasum":"3d8cadd90d976569fa835ab1f8e4b23a105605a7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"anonymous","email":"doug@somethingdoug.com"},"dist":{"shasum":"3d8cadd90d976569fa835ab1f8e4b23a105605a7","size":4229,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.5.2.tgz"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fresh-0.5.2.tgz_1505365391149_0.7952043106779456"},"directories":{},"publish_time":1505365392205,"_cnpm_publish_time":1505365392205,"_hasShrinkwrap":false},"0.5.1":{"name":"fresh","description":"HTTP response freshness testing","version":"0.5.1","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","keywords":["fresh","http","conditional","cache"],"repository":{"type":"git","url":"git+https://github.com/jshttp/fresh.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.7.0","eslint-plugin-markdown":"1.0.0-beta.6","eslint-plugin-node":"5.1.1","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint --plugin markdown --ext js,md .","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"e8a4aaffc75b6169a6f57168ac79dee7a7f02c92","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh#readme","_id":"fresh@0.5.1","_shasum":"c3a08bcec0fcdcc223edf3b23eb327f1f9fcbf5c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"anonymous","email":"doug@somethingdoug.com"},"dist":{"shasum":"c3a08bcec0fcdcc223edf3b23eb327f1f9fcbf5c","size":4023,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.5.1.tgz"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fresh-0.5.1.tgz_1505187168525_0.3156159908976406"},"directories":{},"publish_time":1505187169448,"_hasShrinkwrap":false,"_cnpm_publish_time":1505187169448},"0.5.0":{"name":"fresh","description":"HTTP response freshness testing","version":"0.5.0","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","keywords":["fresh","http","conditional","cache"],"repository":{"type":"git","url":"git+https://github.com/jshttp/fresh.git"},"devDependencies":{"eslint":"3.16.0","eslint-config-standard":"6.2.1","eslint-plugin-promise":"3.4.2","eslint-plugin-standard":"2.0.1","istanbul":"0.4.5","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"b1d26abb390d5dd1d9b82f0a5b890ab0ef1fee5c","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh#readme","_id":"fresh@0.5.0","_shasum":"f474ca5e6a9246d6fd8e0953cfa9b9c805afa78e","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"anonymous","email":"doug@somethingdoug.com"},"dist":{"shasum":"f474ca5e6a9246d6fd8e0953cfa9b9c805afa78e","size":3679,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.5.0.tgz"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fresh-0.5.0.tgz_1487738798128_0.4817247486207634"},"directories":{},"publish_time":1487738800181,"_cnpm_publish_time":1487738800181,"_hasShrinkwrap":false},"0.4.0":{"name":"fresh","description":"HTTP response freshness testing","version":"0.4.0","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","keywords":["fresh","http","conditional","cache"],"repository":{"type":"git","url":"git+https://github.com/jshttp/fresh.git"},"devDependencies":{"eslint":"3.15.0","eslint-config-standard":"6.2.1","eslint-plugin-promise":"3.4.0","eslint-plugin-standard":"2.0.1","istanbul":"0.4.5","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"c0af4deba75d95d1f5d56906b7dc45b849cbaa21","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh#readme","_id":"fresh@0.4.0","_shasum":"475626a934a8d3480b2101a1d6ecef7dafd7c553","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"anonymous","email":"doug@somethingdoug.com"},"dist":{"shasum":"475626a934a8d3480b2101a1d6ecef7dafd7c553","size":3317,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.4.0.tgz"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fresh-0.4.0.tgz_1486346746830_0.760833503678441"},"directories":{},"publish_time":1486346748973,"_cnpm_publish_time":1486346748973,"_hasShrinkwrap":false},"0.3.0":{"name":"fresh","description":"HTTP response freshness testing","version":"0.3.0","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","keywords":["fresh","http","conditional","cache"],"repository":{"type":"git","url":"https://github.com/jshttp/fresh"},"devDependencies":{"istanbul":"0.3.9","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"14616c9748368ca08cd6a955dd88ab659b778634","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh","_id":"fresh@0.3.0","_shasum":"651f838e22424e7566de161d8358caa199f83d4f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"anonymous","email":"doug@somethingdoug.com"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"dist":{"shasum":"651f838e22424e7566de161d8358caa199f83d4f","size":2472,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.3.0.tgz"},"directories":{},"publish_time":1431443438713,"_cnpm_publish_time":1431443438713,"_hasShrinkwrap":false},"0.2.4":{"name":"fresh","description":"HTTP response freshness testing","version":"0.2.4","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"license":"MIT","keywords":["fresh","http","conditional","cache"],"repository":{"type":"git","url":"https://github.com/jshttp/fresh"},"devDependencies":{"istanbul":"0","mocha":"1","should":"3"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --require should","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --require should"},"gitHead":"8440a4ca75fb091dec06e88654b3b1c31d7e7164","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh","_id":"fresh@0.2.4","_shasum":"3582499206c9723714190edd74b4604feb4a614c","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"anonymous","email":"doug@somethingdoug.com"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"dist":{"shasum":"3582499206c9723714190edd74b4604feb4a614c","size":2310,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.2.4.tgz"},"directories":{},"publish_time":1410144640194,"_cnpm_publish_time":1410144640194,"_hasShrinkwrap":false,"contributors":[]},"0.2.3":{"name":"fresh","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"description":"HTTP response freshness testing","version":"0.2.3","repository":{"type":"git","url":"https://github.com/jshttp/fresh"},"devDependencies":{"istanbul":"0","mocha":"1","should":"3"},"license":"MIT","scripts":{"test":"mocha --reporter spec --require should","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --require should"},"keywords":["fresh","http","conditional","cache"],"files":["index.js"],"gitHead":"a94cacdf94f85bd6a1e1210c5928e4b0d8518043","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh","_id":"fresh@0.2.3","_shasum":"2db40d43bc63830f418519380879d6bedde2e845","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"anonymous","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"dist":{"shasum":"2db40d43bc63830f418519380879d6bedde2e845","size":1485,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.2.3.tgz"},"directories":{},"publish_time":1410138551214,"_cnpm_publish_time":1410138551214,"_hasShrinkwrap":false,"contributors":[]},"0.2.2":{"name":"fresh","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"description":"HTTP response freshness testing","version":"0.2.2","main":"index.js","repository":{"type":"git","url":"https://github.com/visionmedia/node-fresh.git"},"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"licenses":[{"type":"MIT","url":"https://github.com/visionmedia/node-fresh/blob/master/Readme.md#license"}],"bugs":{"url":"https://github.com/visionmedia/node-fresh/issues"},"homepage":"https://github.com/visionmedia/node-fresh","_id":"fresh@0.2.2","dist":{"shasum":"9731dcf5678c7faeb44fb903c4f72df55187fa77","size":1991,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.2.2.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"anonymous","email":"tj@vision-media.ca"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"directories":{},"publish_time":1392852495565,"_hasShrinkwrap":false,"_cnpm_publish_time":1392852495565,"contributors":[]},"0.2.1":{"name":"fresh","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"description":"HTTP response freshness testing","version":"0.2.1","main":"index.js","repository":{"type":"git","url":"https://github.com/visionmedia/node-fresh.git"},"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"licenses":[{"type":"MIT","url":"https://github.com/visionmedia/node-fresh/blob/master/Readme.md#license"}],"bugs":{"url":"https://github.com/visionmedia/node-fresh/issues"},"homepage":"https://github.com/visionmedia/node-fresh","_id":"fresh@0.2.1","dist":{"shasum":"13cc0b1f53fe0e6fa6a70c18d52ce3c5c56be066","size":2000,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"anonymous","email":"tj@vision-media.ca"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"directories":{},"publish_time":1391026568494,"_hasShrinkwrap":false,"_cnpm_publish_time":1391026568494,"contributors":[]},"0.2.0":{"name":"fresh","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"description":"HTTP response freshness testing","version":"0.2.0","main":"index.js","repository":{"type":"git","url":"https://github.com/visionmedia/node-fresh.git"},"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"bugs":{"url":"https://github.com/visionmedia/node-fresh/issues"},"_id":"fresh@0.2.0","dist":{"shasum":"bfd9402cf3df12c4a4c310c79f99a3dde13d34a7","size":1887,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.4","_npmUser":{"name":"anonymous","email":"tj@vision-media.ca"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"directories":{},"publish_time":1376171095387,"_hasShrinkwrap":false,"_cnpm_publish_time":1376171095387,"contributors":[]},"0.1.0":{"name":"fresh","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"description":"HTTP response freshness testing","version":"0.1.0","main":"index.js","dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"_npmUser":{"name":"anonymous","email":"tj@vision-media.ca"},"_id":"fresh@0.1.0","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"03e4b0178424e4c2d5d19a54d8814cdc97934850","size":1087,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"directories":{},"publish_time":1339801631778,"_hasShrinkwrap":false,"_cnpm_publish_time":1339801631778,"contributors":[]},"0.0.1":{"name":"fresh","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"description":"HTTP response freshness testing","version":"0.0.1","main":"index.js","dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"_npmUser":{"name":"anonymous","email":"tj@vision-media.ca"},"_id":"fresh@0.0.1","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"f98a0a1b9001b6e227fb9c65ff3927bdb7b404fa","size":1068,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-0.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"doug@somethingdoug.com"}],"directories":{},"publish_time":1339355376227,"_hasShrinkwrap":false,"_cnpm_publish_time":1339355376227,"contributors":[]},"1.0.0":{"name":"fresh","version":"1.0.0","keywords":["fresh","http","conditional","cache"],"author":{"url":"http://tjholowaychuk.com","name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"license":"MIT","_id":"fresh@1.0.0","maintainers":[{"name":"anonymous","email":"npm@jonchurch.com"},{"name":"anonymous","email":"doug@somethingdoug.com"}],"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"}],"homepage":"https://github.com/jshttp/fresh#readme","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"dist":{"shasum":"95336eef8f1419546bec657ebaa3f8cef48d3b8b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-1.0.0.tgz","fileCount":5,"integrity":"sha512-CXbd7Pq2ZU4uK2K8pIsduMqFH27c6DhruWq42tmJjQ5a3ouq1pZNjdSOaYuT2Vx2UpU6st5Cx9ye0GWnnMMnSg==","signatures":[{"sig":"MEUCIFThuI+qvqDWJ+wwTWNilFQ/3nXQRmqBDmCn+YK9xYsCAiEA6+M0/xQ5zCNtskTwZMuLzKLzW2HMCylIffO1GZ3u7BA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10226,"size":4320},"engines":{"node":">= 0.8"},"gitHead":"64b8dad952beae7834e092e9ed3c01f7aac356fb","scripts":{"lint":"eslint .","test":"mocha --reporter spec --check-leaks --bail test/","bench":"node benchmark/index.js","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test"},"_npmUser":{"name":"anonymous","email":"npm@jonchurch.com"},"repository":{"url":"git+https://github.com/jshttp/fresh.git","type":"git"},"_npmVersion":"10.5.0","description":"HTTP response freshness testing","directories":{},"_nodeVersion":"20.12.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"15.1.0","mocha":"9.2.0","eslint":"8.12.0","benchmark":"2.1.4","beautify-benchmark":"0.2.4","eslint-plugin-node":"11.1.0","eslint-plugin-import":"2.25.4","eslint-plugin-promise":"6.0.0","eslint-config-standard":"14.1.1","eslint-plugin-markdown":"2.2.1","eslint-plugin-standard":"4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/fresh_1.0.0_1725488205701_0.18854086244144042","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-09-04T22:16:45.871Z","publish_time":1725488205871,"_source_registry_name":"default"},"2.0.0":{"name":"fresh","description":"HTTP response freshness testing","version":"2.0.0","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca","url":"http://tjholowaychuk.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","keywords":["fresh","http","conditional","cache"],"repository":{"type":"git","url":"git+https://github.com/jshttp/fresh.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"8.12.0","eslint-config-standard":"14.1.1","eslint-plugin-import":"2.25.4","eslint-plugin-markdown":"2.2.1","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.0.0","eslint-plugin-standard":"4.1.0","mocha":"9.2.0","nyc":"15.1.0"},"engines":{"node":">= 0.8"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint .","test":"mocha --reporter spec --check-leaks --bail test/","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test"},"_id":"fresh@2.0.0","readmeFilename":"README.md","gitHead":"f185ef1376c0337d366f9e35bda92b053983fd81","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"homepage":"https://github.com/jshttp/fresh#readme","_nodeVersion":"20.12.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==","shasum":"8dd7df6a1b3a1b3a5cf186c05a5dd267622635a4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-2.0.0.tgz","fileCount":5,"unpackedSize":10289,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBFJPoFuukcOo1fzNYCDNO+SDzgPf0eKjqmYjOYyNzkwIhAPOR+Beygb9z6PiclNlPz2vyI3RnokWj9gPVk0RvZa0f"}],"size":4330},"_npmUser":{"name":"anonymous","email":"npm@jonchurch.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"npm@jonchurch.com"},{"name":"anonymous","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fresh_2.0.0_1725492288192_0.446838953143202"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-04T23:24:48.361Z","publish_time":1725492288361,"_source_registry_name":"default"},"3.0.0":{"_id":"fresh@3.0.0","bugs":{"url":"https://github.com/jshttp/fresh/issues"},"dist":{"shasum":"ce7e40e23df74d3a64a33731bdf687c1c8bdc110","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fresh/-/fresh-3.0.0.tgz","integrity":"sha512-fy/52mIkHdrocRiOmCKplEWYp3BMt0wW1vNtJPkdX/MNaAIlnD3wqG5z+/pLU5EsUdn2i0HXjjdb0mkGGElK0Q==","fileCount":6,"unpackedSize":39597,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fresh@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBpNNX+Eouf+sIJ0+p68aTi4AFbe/o0qyVvwlh9r+8YAAiAybh0P6sawEdH6oqn7KrYqn7swzODgHsWhcOEqhdK75A=="}],"size":9681},"main":"./dist/index.js","name":"fresh","type":"module","author":{"url":"http://tjholowaychuk.com","name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"engines":{"node":">=22"},"exports":"./dist/index.js","funding":{"url":"https://opencollective.com/express","type":"opencollective"},"gitHead":"388c73ea2bfd40a5d4a9c367f37445b9885e92a6","license":"MIT","scripts":{"size":"size-limit","test":"ts-scripts test && npm run size","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"typings":"./dist/index.d.ts","version":"3.0.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"40fa82f7-a8ee-4298-985f-35a0982915ed"},"approver":{"name":"blakeembrey","email":"hello@blakeembrey.com"}},"homepage":"https://github.com/jshttp/fresh#readme","keywords":["fresh","http","conditional","cache"],"repository":{"url":"git+https://github.com/jshttp/fresh.git","type":"git"},"size-limit":[{"path":"dist/index.js","limit":"1350 B"}],"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"11.21.3","description":"HTTP response freshness testing","directories":{},"maintainers":[{"name":"anonymous","email":"ulisesgascondev@gmail.com"},{"name":"anonymous","email":"hello@blakeembrey.com"},{"name":"anonymous","email":"npm@jonchurch.com"},{"name":"anonymous","email":"doug@somethingdoug.com"}],"_nodeVersion":"26.14.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"}],"devDependencies":{"vitest":"^5.1.1","size-limit":"^14.3.0","typescript":"^7.0.2","@types/node":"^22.20.7","@vitest/coverage-v8":"^5.1.1","@borderless/ts-scripts":"^0.15.0","@size-limit/preset-small-lib":"^14.3.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fresh_3.0.0_1796252579880_0.42933657212323884"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-12-02T23:02:59.997Z","publish_time":1796252579997,"_source_registry_name":"default"}},"dist-tags":{"latest":"3.0.0","next":"2.0.0"},"name":"fresh","time":{"modified":"2026-12-02T23:03:14.942Z","created":"2022-01-26T12:58:06.704Z","0.5.2":"2017-09-14T05:03:12.205Z","0.5.1":"2017-09-12T03:32:49.448Z","0.5.0":"2017-02-22T04:46:40.181Z","0.4.0":"2017-02-06T02:05:48.973Z","0.3.0":"2015-05-12T15:10:38.713Z","0.2.4":"2014-09-08T02:50:40.194Z","0.2.3":"2014-09-08T01:09:11.214Z","0.2.2":"2014-02-19T23:28:15.565Z","0.2.1":"2014-01-29T20:16:08.494Z","0.2.0":"2013-08-10T21:44:55.387Z","0.1.0":"2012-06-15T23:07:11.778Z","0.0.1":"2012-06-10T19:09:36.227Z","1.0.0":"2024-09-04T22:16:45.871Z","2.0.0":"2024-09-04T23:24:48.361Z","3.0.0":"2026-12-02T23:02:59.997Z"},"readme":"# fresh\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][ci-image]][ci-url]\n[![Test Coverage][coverage-image]][coverage-url]\n\nHTTP response freshness and request precondition testing.\n\n## Installation\n\n```\n$ npm install fresh\n```\n\n## API\n\n```js\nimport { allowsRange, fresh, preconditionFailed } from \"fresh\";\n```\n\nCheck freshness of the response using a lowercase-keyed request headers object and a response object with a `getHeader(name)` method. The method uses lowercase header names. A header value of `null` or `undefined` is treated as missing on both the request and response.\n\n### fresh(reqHeaders, res)\n\n`fresh()` returns `true` when the request validators allow a `304 Not Modified` for the selected representation. It returns `false` when the request has no validators or validation fails. The caller decides whether the request method and response status permit a `304`.\n\nThe `FreshHeaders` type includes `if-none-match` and `if-modified-since`. `fresh()` reads the response’s `etag` or `last-modified` header as needed.\n\n### preconditionFailed(reqHeaders, res)\n\nCheck the GET and HEAD validators that can lead to `412 Precondition Failed`. Returns `true` if a precondition fails and `false` otherwise.\n\n`If-Match` uses strong ETag comparison and takes precedence over `If-Unmodified-Since`. A selected representation satisfies `If-Match: *` even without an ETag.\n\nThe `PreconditionHeaders` type includes `if-match` and `if-unmodified-since`. `preconditionFailed()` reads the response’s `etag` or `last-modified` header as needed.\n\n### allowsRange(reqHeaders, res, options?)\n\nFor a GET with `Range`, call `allowsRange()` after checking for `412` and `304`. It returns `true` if `If-Range` is absent or matches the selected representation. If it returns `true`, process `Range` as usual. If it returns `false`, ignore `Range` and send the full representation.\n\nAn ETag must match exactly and be strong. Characters inside the quotes are compared as supplied. To allow an HTTP-date match, pass `{ lastModifiedIsStrong: true }` when the caller knows the response’s `Last-Modified` is a [strong validator](https://www.rfc-editor.org/rfc/rfc9110.html#section-8.8.2.2). The date must match exactly.\n\nThe `RangeHeaders` type accepts `if-range`. `allowsRange()` checks `If-Range` and reads the response’s `etag` or `last-modified` header as needed.\n\n## Example\n\n### API usage\n\n```js\nconst reqHeaders = { \"if-none-match\": '\"foo\"' };\nconst headers = { etag: '\"bar\"' };\nconst res = {\n  getHeader(name) {\n    return headers[name];\n  },\n};\n\nfresh(reqHeaders, res);\n// => false\n\nheaders.etag = '\"foo\"';\nfresh(reqHeaders, res);\n// => true\n```\n\n### Using with Node.js http server\n\n```js\nimport { createServer } from \"node:http\";\nimport { fresh, preconditionFailed } from \"fresh\";\n\nconst server = createServer(function (req, res) {\n  if (req.method !== \"GET\" && req.method !== \"HEAD\") {\n    res.writeHead(405, { Allow: \"GET, HEAD\" });\n    res.end();\n    return;\n  }\n\n  res.statusCode = 200;\n  res.setHeader(\"ETag\", '\"hello-world-v1\"');\n\n  const headers = req.headersDistinct;\n\n  if (preconditionFailed(headers, res)) {\n    res.statusCode = 412;\n    res.end();\n    return;\n  }\n\n  if (fresh(headers, res)) {\n    res.statusCode = 304;\n    res.end();\n    return;\n  }\n\n  res.end(\"hello, world!\");\n});\n\nserver.listen(3000);\n```\n\n### Using with Fetch\n\n```js\nconst reqHeaders = {\n  \"if-none-match\": request.headers.get(\"if-none-match\"),\n  \"if-modified-since\": request.headers.get(\"if-modified-since\"),\n};\n\nconst isFresh = fresh(reqHeaders, {\n  getHeader(name) {\n    return response.headers.get(name);\n  },\n});\n```\n\n## License\n\n[MIT](LICENSE)\n\n[ci-image]: https://img.shields.io/github/actions/workflow/status/jshttp/fresh/ci.yml?branch=master&label=ci\n[ci-url]: https://github.com/jshttp/fresh/actions/workflows/ci.yml\n[npm-image]: https://img.shields.io/npm/v/fresh.svg\n[npm-url]: https://npmjs.org/package/fresh\n[node-version-image]: https://img.shields.io/node/v/fresh.svg\n[node-version-url]: https://nodejs.org/en/\n[coverage-image]: https://img.shields.io/codecov/c/gh/jshttp/fresh\n[coverage-url]: https://codecov.io/gh/jshttp/fresh\n[downloads-image]: https://img.shields.io/npm/dm/fresh.svg\n[downloads-url]: https://npmjs.org/package/fresh","users":{}}