{"_id":"hono-compress","_rev":"8-00dc86e7c4f8175ea83be29db6a585b1","name":"hono-compress","dist-tags":{"latest":"1.0.2"},"versions":{"0.5.1":{"name":"hono-compress","version":"0.5.1","keywords":["hono","compression","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"author":{"url":"https://github.com/vuolter","name":"Walter Purcaro"},"license":"MIT","_id":"hono-compress@0.5.1","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"homepage":"https://github.com/vuolter/hono-compress#readme","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"url":"https://github.com/vuolter/hono-compress","dist":{"shasum":"b556c4614ec0bdbb9890decd1cd0fb42ca1c3f38","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-0.5.1.tgz","fileCount":18,"integrity":"sha512-XND6QN8sB1Kh+M9/ui/L4cQSJwLIKG1KLbxoNlmf4AMehOyO3wUJl7tGQLsOz84f33wWlvIWNIK1MGeZZnE/7A==","signatures":[{"sig":"MEYCIQDSDbNM54W8WkrVz+FesWqBxDDX1ouoDIUBJA0wMGi+PwIhAO9ehfMv/sJmBR+P/qL3WRLmN8hPqC+j7bvm8U+OAj+m","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@0.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25818},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"gitHead":"69d3d0e105d19cc535119bfa31332565f7a0e80d","scripts":{"lint":"eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content --fix .","test":"bun test","build":"pkgroll --clean-dist --minify","format":"prettier . --write","typecheck":"tsc --noEmit"},"_npmUser":{"name":"vuolter","email":"vuolter@gmail.com"},"repository":{"url":"git+https://github.com/vuolter/hono-compress.git","type":"git"},"_npmVersion":"10.9.0","description":"Compression plugin for Hono working with Bun","directories":{},"_nodeVersion":"23.2.0","dependencies":{"brotli-wasm":"^3.0.1","@mongodb-js/zstd":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.14.0","pkgroll":"^2.5.1","prettier":"^4.0.0-alpha.10","@eslint/js":"^9.15.0","@types/bun":"^1.1.13","typescript":"^5.6.3","@types/node":"^22.9.0","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.14.0","eslint-plugin-tsdoc":"^0.3.0","eslint-plugin-regexp":"^2.7.0","eslint-plugin-sonarjs":"^2.0.4","eslint-plugin-unicorn":"^56.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import-x":"^4.4.2","eslint-plugin-markdown":"^5.1.0","eslint-plugin-security":"^3.0.1","eslint-plugin-perfectionist":"^3.9.1","eslint-import-resolver-typescript":"^3.6.3"},"peerDependencies":{"hono":"^4.6.8"},"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.27.2"},"_npmOperationalInternal":{"tmp":"tmp/hono-compress_0.5.1_1731841151194_0.5799902015589711","host":"s3://npm-registry-packages"}},"0.5.2":{"name":"hono-compress","version":"0.5.2","keywords":["hono","compression","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"author":{"url":"https://github.com/vuolter","name":"Walter Purcaro"},"license":"MIT","_id":"hono-compress@0.5.2","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"homepage":"https://github.com/vuolter/hono-compress#readme","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"url":"https://github.com/vuolter/hono-compress","dist":{"shasum":"1976bd23e40b111895a829099b43712b06c80b2b","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-0.5.2.tgz","fileCount":7,"integrity":"sha512-MaUZqFgR6wTY70O75frymUkPwt1FcEOS5/09XsrCcdsYcZliAuok3hZlGPXNliraHH+p9mDfPF1pJUCp+nt6cw==","signatures":[{"sig":"MEUCIQDe+KqfBMjbDWH2+uY1JlbJ6CDLINeiidk2gha0yg7VLAIgN/6ZkLNN9cfMKGgTKxtQhig1xvrT8wTdgCw9VdFiZYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@0.5.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15504},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"gitHead":"0746da3d32d0d461b378a51a875d85f6f925e7e7","scripts":{"lint":"eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content --fix .","test":"bun test","build":"pkgroll --clean-dist --minify","format":"prettier . --write","typecheck":"tsc --noEmit"},"_npmUser":{"name":"vuolter","email":"vuolter@gmail.com"},"repository":{"url":"git+https://github.com/vuolter/hono-compress.git","type":"git"},"_npmVersion":"10.9.0","description":"Compression plugin for Hono working with Bun","directories":{},"_nodeVersion":"23.2.0","dependencies":{"brotli-wasm":"^3.0.1","@mongodb-js/zstd":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.14.0","pkgroll":"^2.5.1","prettier":"^4.0.0-alpha.10","@eslint/js":"^9.15.0","@types/bun":"^1.1.13","typescript":"^5.6.3","@types/node":"^22.9.0","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.14.0","eslint-plugin-tsdoc":"^0.3.0","eslint-plugin-regexp":"^2.7.0","eslint-plugin-sonarjs":"^2.0.4","eslint-plugin-unicorn":"^56.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import-x":"^4.4.2","eslint-plugin-markdown":"^5.1.0","eslint-plugin-security":"^3.0.1","eslint-plugin-perfectionist":"^3.9.1","eslint-import-resolver-typescript":"^3.6.3"},"peerDependencies":{"hono":"^4.6.8"},"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.27.2"},"_npmOperationalInternal":{"tmp":"tmp/hono-compress_0.5.2_1731847114193_0.8923816442105277","host":"s3://npm-registry-packages"}},"0.5.3":{"name":"hono-compress","version":"0.5.3","keywords":["hono","compression","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"author":{"url":"https://github.com/vuolter","name":"Walter Purcaro"},"license":"MIT","_id":"hono-compress@0.5.3","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"homepage":"https://github.com/vuolter/hono-compress#readme","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"url":"https://github.com/vuolter/hono-compress","dist":{"shasum":"ddbb194cea4e4d5f643aa70774c6e16daa229f0b","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-0.5.3.tgz","fileCount":7,"integrity":"sha512-aBrkP0cbweBUVgXdV7vOp3rfZ+mjOX/kWJYnm6ZvjPDzi0kzBGmhUv5TgwlJD8ugNOW82Lrc1Px66zKPfdKEWA==","signatures":[{"sig":"MEQCIEdHnFNqUZQJiKtjkGR0ow6yE5vINCEzUDoH48MHlKaOAiApYDDtAYqSsqht0w0xJgZw0HgvUV0kgWS64/SADYD3gg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@0.5.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16266},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"gitHead":"c546045c2b1f1b34c8362cc9d995b2f3af7737a2","scripts":{"lint":"eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content --fix .","test":"bun test","build":"pkgroll --clean-dist --minify","format":"prettier . --write","typecheck":"tsc --noEmit"},"_npmUser":{"name":"vuolter","email":"vuolter@gmail.com"},"repository":{"url":"git+https://github.com/vuolter/hono-compress.git","type":"git"},"_npmVersion":"10.9.0","description":"Compression plugin for Hono working with Bun","directories":{},"_nodeVersion":"23.2.0","dependencies":{"brotli-wasm":"^3.0.1","@mongodb-js/zstd":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.14.0","pkgroll":"^2.5.1","prettier":"^4.0.0-alpha.10","@eslint/js":"^9.15.0","@types/bun":"^1.1.13","typescript":"^5.6.3","@types/node":"^22.9.0","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.14.0","eslint-plugin-tsdoc":"^0.3.0","eslint-plugin-regexp":"^2.7.0","eslint-plugin-sonarjs":"^2.0.4","eslint-plugin-unicorn":"^56.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import-x":"^4.4.2","eslint-plugin-markdown":"^5.1.0","eslint-plugin-security":"^3.0.1","eslint-plugin-perfectionist":"^3.9.1","eslint-import-resolver-typescript":"^3.6.3"},"peerDependencies":{"hono":"^4.6.8"},"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.27.2"},"_npmOperationalInternal":{"tmp":"tmp/hono-compress_0.5.3_1731859221676_0.9424662750326771","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"hono-compress","version":"0.6.0","keywords":["hono","compression","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"author":{"url":"https://github.com/vuolter","name":"Walter Purcaro"},"license":"MIT","_id":"hono-compress@0.6.0","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"homepage":"https://github.com/vuolter/hono-compress#readme","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"url":"https://github.com/vuolter/hono-compress","dist":{"shasum":"1fbfd99c2f88e9c4ec9473e72befa0a169a89e54","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-0.6.0.tgz","fileCount":7,"integrity":"sha512-umzJu3JNGGNmjZiMpeImbUqhtrxgplYZxQZbyVVeXvEXcjdtmep9pT6u9/lZjNFCqfPFC4COxSKMDnUuF8Ub7w==","signatures":[{"sig":"MEYCIQDdLouegXZ42ZlM4ySpGLJV0bDov9dDhD+bDt6NMQWPWwIhAN81bcFCpMVo5dxUKg/Zf+uKZsPXwNQSyCykfh9YN3Yc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16737},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"gitHead":"3b6c06b9011f1bc75e932b15f5b06b5284bd1670","scripts":{"lint":"eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content --fix .","test":"bun test","build":"pkgroll --clean-dist --minify","format":"prettier . --write","typecheck":"tsc --noEmit"},"_npmUser":{"name":"vuolter","email":"vuolter@gmail.com"},"repository":{"url":"git+https://github.com/vuolter/hono-compress.git","type":"git"},"_npmVersion":"10.9.0","description":"Compression plugin for Hono working with Bun","directories":{},"_nodeVersion":"23.2.0","dependencies":{"brotli-wasm":"^3.0.1","@mongodb-js/zstd":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.14.0","pkgroll":"^2.5.1","prettier":"^4.0.0-alpha.10","@eslint/js":"^9.15.0","@types/bun":"^1.1.13","typescript":"^5.6.3","@types/node":"^22.9.0","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.14.0","eslint-plugin-tsdoc":"^0.3.0","eslint-plugin-regexp":"^2.7.0","eslint-plugin-sonarjs":"^2.0.4","eslint-plugin-unicorn":"^56.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import-x":"^4.4.2","eslint-plugin-markdown":"^5.1.0","eslint-plugin-security":"^3.0.1","eslint-plugin-perfectionist":"^3.9.1","eslint-import-resolver-typescript":"^3.6.3"},"peerDependencies":{"hono":"^4.6.8"},"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.27.2"},"_npmOperationalInternal":{"tmp":"tmp/hono-compress_0.6.0_1731940530737_0.7914594225999529","host":"s3://npm-registry-packages"}},"0.7.0":{"name":"hono-compress","version":"0.7.0","keywords":["hono","compression","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"author":{"url":"https://github.com/vuolter","name":"Walter Purcaro"},"license":"MIT","_id":"hono-compress@0.7.0","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"homepage":"https://github.com/vuolter/hono-compress#readme","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"url":"https://github.com/vuolter/hono-compress","dist":{"shasum":"85db1cc22851c05e59c93983b8143c83869b66d6","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-0.7.0.tgz","fileCount":7,"integrity":"sha512-sJup+6Mp8ZIcGok140acl689dx7WOJPXF86NX5YzPifeeM6mp1jsvwtke0cMiNoyrPvhNEaMAS9Cx497TVv4PQ==","signatures":[{"sig":"MEUCIQCarHDge5XgTYEzO3INZ7OLftySKGf3MuPe28Prcr4xvgIgRnaot2JywVABJSFhSx72lWNMwRemg5dhMyuDnFAjkd4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":52434},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"gitHead":"b951cb90c1e794a6744527ba9bb3760aa81bd142","scripts":{"lint":"eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content --fix .","lock":"bun install --silent && npm install --force --no-audit --no-fund --package-lock-only","test":"bun test","build":"pkgroll --clean-dist --minify","format":"prettier . --write","update":"bun update --latest && npm install --force --no-fund --package-lock-only","typecheck":"tsc --noEmit"},"_npmUser":{"name":"vuolter","email":"vuolter@gmail.com"},"repository":{"url":"git+https://github.com/vuolter/hono-compress.git","type":"git"},"_npmVersion":"10.9.0","description":"Compression plugin for Hono working with Bun","directories":{},"_nodeVersion":"23.3.0","dependencies":{"brotli-wasm":"^3.0.1","@mongodb-js/zstd":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.16.0","pkgroll":"^2.5.1","prettier":"^4.0.0-alpha.10","type-fest":"^4.30.0","@eslint/js":"^9.16.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.17.0","eslint-plugin-tsdoc":"^0.4.0","eslint-plugin-regexp":"^2.7.0","eslint-plugin-sonarjs":"^3.0.1","eslint-plugin-unicorn":"^56.0.1","eslint-config-prettier":"^9.1.0","eslint-plugin-import-x":"^4.5.0","eslint-plugin-markdown":"^5.1.0","eslint-plugin-security":"^3.0.1","eslint-plugin-perfectionist":"^4.2.0","eslint-import-resolver-typescript":"^3.7.0"},"peerDependencies":{"hono":"^4.6.13"},"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.28.1"},"_npmOperationalInternal":{"tmp":"tmp/hono-compress_0.7.0_1733666556603_0.5122426646612566","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"hono-compress","version":"1.0.0","keywords":["hono","hono compress","bun compress","compression","compress","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"author":{"url":"https://github.com/vuolter","name":"Walter Purcaro"},"license":"MIT","_id":"hono-compress@1.0.0","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"homepage":"https://github.com/vuolter/hono-compress#readme","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"url":"https://github.com/vuolter/hono-compress","dist":{"shasum":"3e9360eb2a95d118bfb1fea4812b4010294d6743","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-1.0.0.tgz","fileCount":7,"integrity":"sha512-V8MVCNsbWd90OHmGkM0lER0rCb/KYY0O798/P7id4FPoqDwO25uZRHmHOjeqy0Cc8Shxi+bGTHgUR3HdCx8/qQ==","signatures":[{"sig":"MEUCIQCUJZ3rm6Zq/Lu10+9mD0YRGCVcbJk1CaGXHcCCv55QJAIgUqSs+3ERrVRsNp46BVD1L6tEZYLLD39Xic82UYF5MKg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":27751},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"c5df6b253144257faadda396eabc39510a5fb408","scripts":{"lint":"eslint --cache --cache-location ./node_modules/.cache/eslint --cache-strategy content --concurrency auto --fix .","build":"bun typecheck && tsdown","format":"prettier . --cache --experimental-cli --write","gendocs":"typedoc && prettier ./docs --cache --experimental-cli --log-level silent --write","typecheck":"tsgo","postinstall":"npm install --force --ignore-scripts --package-lock-only --silent"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1aa3b4a4-d9dd-4a3c-93cc-dbb871800079"}},"repository":{"url":"git+https://github.com/vuolter/hono-compress.git","type":"git"},"_npmVersion":"11.6.2","description":"Compression plugin for Hono working with Bun","directories":{},"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.39.1","tsdown":"^0.16.6","globals":"^16.5.0","typedoc":"^0.28.14","prettier":"^3.6.2","@eslint/js":"^9.39.1","@types/bun":"^1.3.3","typescript-eslint":"^8.47.0","eslint-plugin-tsdoc":"^0.5.0","typedoc-theme-fresh":"^0.2.1","@prettier/plugin-oxc":"^0.0.5","eslint-plugin-regexp":"^2.10.0","eslint-plugin-sonarjs":"^3.0.5","eslint-plugin-unicorn":"^62.0.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import-x":"^4.16.1","eslint-plugin-security":"^3.0.1","typedoc-plugin-markdown":"^4.9.0","@typescript/native-preview":"^7.0.0-dev.20251121.1","eslint-plugin-perfectionist":"^4.15.1","eslint-import-resolver-typescript":"^4.4.4","@socketsecurity/bun-security-scanner":"^1.1.1"},"peerDependencies":{"hono":"^4.10.6"},"trustedDependencies":["esbuild","unrs-resolver"],"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.53.3"},"_npmOperationalInternal":{"tmp":"tmp/hono-compress_1.0.0_1763764003189_0.34928967820243284","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"hono-compress","version":"1.0.1","keywords":["hono","hono compress","bun compress","compression","compress","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"author":{"url":"https://github.com/vuolter","name":"Walter Purcaro"},"license":"MIT","_id":"hono-compress@1.0.1","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"homepage":"https://github.com/vuolter/hono-compress#readme","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"url":"https://github.com/vuolter/hono-compress","dist":{"shasum":"480dda49e110fb0d1a593580009ca89d6934bc24","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-1.0.1.tgz","fileCount":7,"integrity":"sha512-RUL2dNUJHp27xxI9i0H67RFVk6l5iKnGWvnI0Op5GigMbwdla5pP2OEa91WxM2CgiZXVSpnZmSWsy2/ec8LCxg==","signatures":[{"sig":"MEUCIQDaXLrJhXeS2Q5aTD7os1FDs4hinuZVx5dqxEsx9ECdLAIgBOi8cPozolPJMHZ79zJ4MGgDXUxjM4kP0y+0NvbkYq0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28212},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"a593a7f0644fdfb781c7020d27da22ebb0e05658","scripts":{"lint":"eslint --cache --cache-location ./node_modules/.cache/eslint --cache-strategy content --concurrency auto --fix .","build":"bun compile && tsdown","format":"prettier . --cache --experimental-cli --write","compile":"tsgo","gendocs":"typedoc && prettier ./docs --cache --experimental-cli --log-level silent --write","postinstall":"npm install --force --ignore-scripts --package-lock-only --silent"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1aa3b4a4-d9dd-4a3c-93cc-dbb871800079"}},"repository":{"url":"git+https://github.com/vuolter/hono-compress.git","type":"git"},"_npmVersion":"11.8.0","description":"Compression plugin for Hono working with Bun","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","tsdown":"^0.20.3","globals":"^17.3.0","typedoc":"^0.28.16","prettier":"^3.8.1","@eslint/js":"^10.0.1","@types/bun":"^1.3.8","typescript-eslint":"^8.54.0","eslint-plugin-tsdoc":"^0.5.0","typedoc-theme-fresh":"^0.2.3","@prettier/plugin-oxc":"^0.1.3","eslint-plugin-regexp":"^3.0.0","eslint-plugin-sonarjs":"^3.0.6","eslint-plugin-unicorn":"^62.0.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import-x":"^4.16.1","eslint-plugin-security":"^3.0.1","typedoc-plugin-markdown":"^4.10.0","@typescript/native-preview":"^7.0.0-dev.20260207.1","eslint-plugin-perfectionist":"^5.5.0","eslint-import-resolver-typescript":"^4.4.4","@socketsecurity/bun-security-scanner":"^1.1.2"},"peerDependencies":{"hono":"^4.11.8"},"trustedDependencies":["esbuild","unrs-resolver"],"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.57.1"},"_npmOperationalInternal":{"tmp":"tmp/hono-compress_1.0.1_1770461577324_0.6475288099678984","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"hono-compress","description":"Compression plugin for Hono working with Bun","version":"1.0.2","type":"module","author":{"name":"Walter Purcaro","url":"https://github.com/vuolter"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/vuolter/hono-compress.git"},"keywords":["hono","hono compress","bun compress","compression","compress","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.cts","engines":{"node":">=18"},"url":"https://github.com/vuolter/hono-compress","scripts":{"build":"bun compile && tsdown","format":"prettier . --cache --experimental-cli --write","lint":"eslint --cache --cache-location ./node_modules/.cache/eslint --cache-strategy content --concurrency auto --fix .","compile":"tsgo --build --noEmit","gendocs":"typedoc && prettier ./docs --cache --experimental-cli --log-level silent --write","postinstall":"npm install --force --ignore-scripts --package-lock-only --silent"},"peerDependencies":{"hono":"^4.12.9"},"devDependencies":{"@eslint/js":"^10.0.1","@prettier/plugin-oxc":"^0.1.3","@socketsecurity/bun-security-scanner":"^1.1.2","@types/bun":"^1.3.11","@typescript/native-preview":"^7.0.0-dev.20260328.1","eslint":"^10.1.0","eslint-config-prettier":"^10.1.8","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import-x":"^4.16.2","eslint-plugin-perfectionist":"^5.7.0","eslint-plugin-regexp":"^3.1.0","eslint-plugin-security":"^4.0.0","eslint-plugin-sonarjs":"^4.0.2","eslint-plugin-tsdoc":"^0.5.2","eslint-plugin-unicorn":"^64.0.0","globals":"^17.4.0","prettier":"^3.8.1","tsdown":"^0.21.6","typedoc":"^0.28.18","typedoc-plugin-markdown":"^4.11.0","typedoc-theme-fresh":"^0.2.3","typescript-eslint":"^8.57.2"},"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"^4.60.0"},"trustedDependencies":["esbuild","unrs-resolver"],"sideEffects":false,"gitHead":"c236d19e665bbbb78662f077b6e3c3aa675bebe0","_id":"hono-compress@1.0.2","bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"homepage":"https://github.com/vuolter/hono-compress#readme","_nodeVersion":"25.8.2","_npmVersion":"11.11.1","dist":{"integrity":"sha512-9jj7gZcb3WFVHdMWu3XmnNjUaQpwlTRQQ+D8UDeOQroQNXJR4BNj4CpRdhwp9gp43ZvPSiJZ3Nhny5RoQRF+2w==","shasum":"5e520fdb050126ae6c49fce7f33d89a8f9240141","tarball":"https://registry.npmjs.org/hono-compress/-/hono-compress-1.0.2.tgz","fileCount":7,"unpackedSize":28208,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hono-compress@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGel+689CeAHLCLCirM2z6NTiy2VJjqT2tZ5xzDKjX8bAiAmwcAoM8CXOSR0UWe3JE7DIaopTBG1+cVA5ZlkLLxO4Q=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1aa3b4a4-d9dd-4a3c-93cc-dbb871800079"}},"directories":{},"maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hono-compress_1.0.2_1774691819680_0.978386155561731"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-17T10:59:11.057Z","modified":"2026-03-28T09:57:00.073Z","0.5.1":"2024-11-17T10:59:11.350Z","0.5.2":"2024-11-17T12:38:34.350Z","0.5.3":"2024-11-17T16:00:21.876Z","0.6.0":"2024-11-18T14:35:30.913Z","0.7.0":"2024-12-08T14:02:36.787Z","1.0.0":"2025-11-21T22:26:43.458Z","1.0.1":"2026-02-07T10:52:57.476Z","1.0.2":"2026-03-28T09:56:59.809Z"},"bugs":{"url":"https://github.com/vuolter/hono-compress/issues"},"author":{"name":"Walter Purcaro","url":"https://github.com/vuolter"},"license":"MIT","homepage":"https://github.com/vuolter/hono-compress#readme","keywords":["hono","hono compress","bun compress","compression","compress","node","deno","bun","edge","zstd","brotli","gzip","deflate"],"repository":{"type":"git","url":"git+https://github.com/vuolter/hono-compress.git"},"description":"Compression plugin for Hono working with Bun","maintainers":[{"name":"vuolter","email":"vuolter@gmail.com"}],"readme":"# 💎 hono-compress\n\nCompression plugin for [Hono](https://github.com/honojs/hono)\n\nDrop-in replacement of the built-in [Compress Middleware](https://hono.dev/docs/middleware/builtin/compress), but with extra juice! 🍋\n\n### Features\n\n- 💯 compress content with `zstd`, `brotli`, `gzip`, `deflate`\n- ✨ ultra-fast and 100% type-safe\n- 🚀 optimized for [Bun](https://bun.sh/)\n- 🎥 streaming response support\n- 🌻 automatic encoding selection\n- 🎯 customizable compression level and options\n- 🎱 content size threshold and custom filtering\n- 🔒 double-compression protection\n- 🔥 [fully documented and tested](https://github.com/vuolter/hono-compress/wiki)\n- ☕ works flawlessy on [Node](https://nodejs.org/), [Deno](https://deno.com/), [Cloudflare Workers](https://workers.cloudflare.com/), [Deno Deploy](https://deno.com/deploy) and many edge runtimes\n\n### Caching\n\n**hono-compress** does not cache content response/request, as this is outside its scope.\n\nYou can rely on [hono-server-cache](https://www.npmjs.com/package/hono-server-cache) (or other similar middlewares) to handle caching.\n\n### Credits\n\nThis project born as a fork of [bun-compression](https://github.com/sunneydev/bun-compression), which itself is a fork of [elysia-compression](https://github.com/gusb3ll/elysia-compression).\n\nBoth projects were broken, unmaintained and missing many of the features I was looking for, so I started with them, but ended up rewriting everything from scratch...\n\nThis project has been also inspired by [hono/compress](https://github.com/honojs/hono), [expressjs/compression](https://github.com/expressjs/compression) and [elysia-compress](https://github.com/vermaysha/elysia-compress).\n\n## Installation\n\n<details open>\n<summary>Bun</summary>\n\n```bash\nbun add hono-compress\n```\n\n</details>\n\n<details>\n<summary>npm</summary>\n\n```bash\nnpm install hono-compress\n```\n\n</details>\n\n<details>\n<summary>pnpm</summary>\n\n```bash\npnpm add hono-compress\n```\n\n</details>\n\n<details>\n<summary>Yarn</summary>\n\n```bash\nyarn add hono-compress\n```\n\n</details>\n\n<details>\n<summary>Deno</summary>\n\n```bash\ndeno add hono-compress\n```\n\n</details>\n\n## Quick Start\n\n```typescript\nimport { Hono } from 'hono'\nimport { compress } from 'hono-compress'\n\nconst app = new Hono()\n\napp.use(compress())\n```\n\n## Usage\n\n### `compress(options: HonoCompressOptions)`\n\nCreates a middleware function for compressing response content.\n\n```typescript\ncompress({\n  encoding,\n  encodings,\n  fallback,\n  force,\n  strict,\n  streaming,\n  bun,\n  node,\n  threshold,\n  zstdLevel,\n  brotliLevel,\n  gzipLevel,\n  deflateLevel,\n  zstdOptions,\n  brotliOptions,\n  gzipOptions,\n  deflateOptions,\n  filter,\n})\n```\n\n## Options\n\n### _(optional)_ encoding: `zstd` | `br` | `gzip` | `deflate`\n\nDefaults to `undefined`.\n\nThe encoding format to be used to compress the response content.\nCan be only one of the following (sorted in descending order by performance):\n\n- `zstd`\n- `br`\n- `gzip`\n- `deflate`\n\nIf not defined, all the formats declared in the option `encodings` can be used.\n\nThis option is provided primarily to maintain compatibility with `hono/compress`, use the option `encodings` to set the wanted compression formats.\n\n### _(optional)_ encodings: `(zstd | br | gzip | deflate)[]`\n\nDefaults to `['zstd', 'br', 'gzip', 'deflate']`.\n\nThe encoding formats allowed to be used to compress the response content.\n\nThe first matching the request `Accept-Encoding` header according their order of declaration is chosen to compress the response content.\n\n### _(optional)_ fallback: `zstd` | `br` | `gzip` | `deflate`\n\nDefaults to `undefined`.\n\nThe encoding format to be used as fallback to compress the response content if no `Accept-Encoding` header is request by the client.\nIf not defined, content will not be compressed.\n\n### _(optional)_ force: `boolean`\n\nDefaults to `false`.\n\nForces the content compression even if the response `Content-Type` header cannot be determined and the `Cache-Control` is set to `no-transform`.\n\n### _(optional)_ strict: `boolean`\n\nDefaults to `true`.\n\nComplies with the client request directives.\nDisables the content compression if match the `x-no-compression` header.\n\n### _(optional)_ streaming: `boolean`\n\nDefaults to `true`.\n\nStreams compressed content in chunked response.\n\nCan be set to `undefined` to automatically detect when disable streaming compression.\nEnabled by default to always streaming content.\n\n### _(optional)_ bun: `boolean`\n\nDefaults to `true`.\n\nAllows Bun stream compressor to be used if available.\n\n### _(optional)_ node: `boolean`\n\nDefaults to `true`.\n\nAllows Node stream compressor to be used if available.\n\n### _(optional)_ threshold: `number`\n\nDefaults to `1024`.\n\nThe minimum size in bytes for a response content to be compressed.\n\n### _(optional)_ zstdLevel: `number`\n\nDefaults to `2`, min `1`, max `22`.\n\nZstandard algorithm compression level (format `zstd`).\n\n### _(optional)_ brotliLevel: `number`\n\nDefaults to `4`, min `0`, max `11`.\n\nBrotli algorithm compression level (format `br`).\n\n### _(optional)_ gzipLevel: `number`\n\nDefaults to `6`, min `0`, max `6`.\n\nGzip algorithm compression level (format `gzip`).\n\n### _(optional)_ deflateLevel: `number`\n\nDefaults to `6`, min `0`, max `6`.\n\nDeflate algorithm compression level (format `deflate`).\n\n### _(optional)_ zstdOptions: `number`\n\nDefaults to `undefined`.\n\nZstandard algorithm compression options (format `zstd`).\n\nRefer to the zstd [manual](https://facebook.github.io/zstd/zstd_manual.html) for more details.\n\n### _(optional)_ brotliOptions: `object`\n\nDefaults to `undefined`.\n\nBrotli algorithm compression options (format `br`).\n\nRefer to the Brotli [specification](https://www.ietf.org/rfc/rfc7932.txt) for more details.\n\n### _(optional)_ gzipOptions: `object`\n\nDefaults to `undefined`.\n\nGzip algorithm compression options (format `gzip`).\n\nRefer to the zlib [manual](https://zlib.net/manual.html) for more details.\n\n### _(optional)_ deflateOptions: `object`\n\nDefaults to `undefined`.\n\nDeflate algorithm compression options (format `deflate`).\n\nRefer to the zlib [manual](https://zlib.net/manual.html) for more details.\n\n### _(optional)_ filter: `function`\n\nDefaults to `undefined`.\n\nOptional function callback used to check if the response content should be compressed or not.\n\nOverrides all the internal checks. Use with caution.\n\n#### Parameters\n\n- [Hono Context](https://hono.dev/docs/api/context)\n\n#### Return value\n\nBoolean\n\n#### Example\n\nForce the response content to be always compressed:\n\n```typescript\nimport type { Context } from 'hono'\n\ncompress({\n  filter: (c: Context) => true,\n})\n```\n\n## Development\n\nInstall dependencies:\n\n```bash\nbun install\n```\n\nBuild dist files:\n\n```bash\nbun run build\n```\n\n## Testing & Documentation\n\nRun test suite:\n\n```bash\nbun test\n```\n\nGenerate documentation files:\n\n```bash\nbun gendocs\n```\n","readmeFilename":"README.md"}