{"_id":"kafka-lz4-lite","_rev":"8-c3bc6846a0627de80d8d5c63b5568754","name":"kafka-lz4-lite","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"kafka-lz4-lite","version":"1.0.0","keywords":["kafka","kafkajs","lz4","lz4js","codec","compression","decompression"],"author":{"name":"Alexander Vukov"},"license":"MIT","_id":"kafka-lz4-lite@1.0.0","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"dist":{"shasum":"d2ccaa01ab30ac4f0cbdc7622c3f9bfd309eb21d","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-1.0.0.tgz","fileCount":21,"integrity":"sha512-CpNlP1fwiq58dzR7VMGLpQTfN14OJztpO07NDYgY7HWPgEgmJ/TfzPsZSbkcjRjGLuD4siNUXFLcgRmVuRZt/w==","signatures":[{"sig":"MEUCIA0hajV8q1Xb8JnVqxY2+qKJbJurT//IgQkg3DVnDGkrAiEAkkyuzDDrn0QYdhWuKZITSccrlnbCmUmXFjMN94TybMM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21372},"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"},"./worker":{"import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"gitHead":"62e5f6a273e3e09df5c228949b6713a2ffad102b","scripts":{"build":"rimraf dist && tsc && rollup -c"},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"repository":{"url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git","type":"git"},"_npmVersion":"9.5.1","description":"Pure JS Kafka LZ4 codec for kafkajs","directories":{},"_nodeVersion":"18.16.0","dependencies":{"lz4js":"^0.2.0","piscina":"^3.2.0","@babel/runtime":"^7.18.9"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","rollup":"^2.78.1","@babel/cli":"^7.18.10","typescript":"^5.0.4","@babel/core":"^7.18.10","@types/node":"^20.2.5","@types/estree":"^1.0.0","@babel/preset-env":"^7.18.10","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.2","@babel/preset-typescript":"^7.18.6","@rollup/plugin-node-resolve":"^13.3.0","@babel/plugin-transform-runtime":"^7.18.10"},"peerDependencies":{"kafkajs":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kafka-lz4-lite_1.0.0_1685460971116_0.32935783667199225","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"kafka-lz4-lite","version":"1.0.1","keywords":["kafka","kafkajs","lz4","lz4js","codec","compression","decompression"],"author":{"name":"Alexander Vukov"},"license":"MIT","_id":"kafka-lz4-lite@1.0.1","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"dist":{"shasum":"5fb19974d781b30023f8d2f6a04747965dac26fa","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-1.0.1.tgz","fileCount":21,"integrity":"sha512-cJZGwGHV4KozrCEg/at04FS5D+FF1Wp+C7wQitPUHzUldIS10UgwzazjMlYJrNTVxr19xkE/3+4Le5JwQzI8ng==","signatures":[{"sig":"MEYCIQCli0MPz5tiLN3Ubbx2lapEjQSyTEcA3K4rkQtAzosJjwIhALcAhXPujeBn8tSUuPVwvUYGfLB/LCLQD+/c1kFc4Tpi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21446},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./worker":{"import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"gitHead":"1c236e0eaf03aafb38c59ce4cb0c8d7227657602","scripts":{"build":"rimraf dist && tsc && rollup -c"},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"repository":{"url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git","type":"git"},"_npmVersion":"9.5.1","description":"Pure JS Kafka LZ4 codec for kafkajs","directories":{},"_nodeVersion":"18.16.0","dependencies":{"lz4js":"^0.2.0","piscina":"^3.2.0","@babel/runtime":"^7.18.9"},"typesVersions":{"*":{"*":["./dist/index.d.ts","./dist/*"]}},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","rollup":"^2.78.1","@babel/cli":"^7.18.10","typescript":"^5.0.4","@babel/core":"^7.18.10","@types/node":"^20.2.5","@types/estree":"^1.0.0","@babel/preset-env":"^7.18.10","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.2","@babel/preset-typescript":"^7.18.6","@rollup/plugin-node-resolve":"^13.3.0","@babel/plugin-transform-runtime":"^7.18.10"},"peerDependencies":{"kafkajs":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kafka-lz4-lite_1.0.1_1685507249979_0.19017045026232715","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"kafka-lz4-lite","version":"1.0.2","keywords":["kafka","kafkajs","lz4","lz4js","codec","compression","decompression"],"author":{"name":"Alexander Vukov"},"license":"MIT","_id":"kafka-lz4-lite@1.0.2","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"dist":{"shasum":"a6460dadc020405fce2d4ecb86c0acdf933c9db4","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-1.0.2.tgz","fileCount":21,"integrity":"sha512-jY9DpLQxmlU4fnJO8ApptgVpowN4vnXzkIxexiUbWHxGJ4/ki25pq6inXEJEZ3elv9CPlYY0ufZyL/uQ825/6g==","signatures":[{"sig":"MEQCIDuVVgg2vHEGeHdp8ydTQnBQnnRUVUWDeZqukCyRhuh+AiA2+hOTsuBSGO9aXqyuRCKm4cx19e/UF7ejuomIFBz7kA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24669},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./worker":{"import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"gitHead":"5789af1c3523042972f6f9f5945a62b976b36ca3","scripts":{"build":"rimraf dist && tsc && rollup -c"},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"repository":{"url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git","type":"git"},"_npmVersion":"9.5.1","description":"Pure JS Kafka LZ4 codec for kafkajs","directories":{},"_nodeVersion":"18.16.0","dependencies":{"lz4js":"^0.2.0","piscina":"^3.2.0","@babel/runtime":"^7.18.9"},"typesVersions":{"*":{"*":["./dist/index.d.ts","./dist/*"]}},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","rollup":"^2.78.1","@babel/cli":"^7.18.10","typescript":"^5.0.4","@babel/core":"^7.18.10","@types/node":"^20.2.5","@types/estree":"^1.0.0","@babel/preset-env":"^7.18.10","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.2","@babel/preset-typescript":"^7.18.6","@rollup/plugin-node-resolve":"^13.3.0","@babel/plugin-transform-runtime":"^7.18.10"},"peerDependencies":{"kafkajs":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kafka-lz4-lite_1.0.2_1685545794076_0.570406739112354","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"kafka-lz4-lite","version":"1.0.3","keywords":["kafka","kafkajs","lz4","lz4js","codec","compression","decompression"],"author":{"name":"Alexander Vukov"},"license":"MIT","_id":"kafka-lz4-lite@1.0.3","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"dist":{"shasum":"ea1e0e92fa9401dee5b326abf51d0de60d50e78b","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-1.0.3.tgz","fileCount":21,"integrity":"sha512-U6BgPagrAr7CXTDp6Nl+21SyfueWfdjA+vSfRL95u4DaW94JplQgvQTFF2e7eC+zEa9f8hBMFB/iX3klvm1Fqw==","signatures":[{"sig":"MEUCIQCz9ABQKNFQA2OwMa4janM+0Vjk/mpfmWxn5S/wwMhdOgIgMmRuVEjtXvFEzjhe2lwZGzNsr/mXNnHCG+NanEp6fKw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24800},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./worker":{"import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"gitHead":"9912e9ac9db20207ef9afde78a70bb4556136dae","scripts":{"build":"rimraf dist && tsc && rollup -c"},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"repository":{"url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git","type":"git"},"_npmVersion":"9.5.1","description":"Pure JS Kafka LZ4 codec for kafkajs","directories":{},"_nodeVersion":"18.16.0","dependencies":{"lz4js":"^0.2.0","piscina":"^3.2.0","@babel/runtime":"^7.18.9"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"worker":["./dist/worker.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","rollup":"^2.78.1","@babel/cli":"^7.18.10","typescript":"^5.0.4","@babel/core":"^7.18.10","@types/node":"^20.2.5","@types/estree":"^1.0.0","@babel/preset-env":"^7.18.10","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.2","@babel/preset-typescript":"^7.18.6","@rollup/plugin-node-resolve":"^13.3.0","@babel/plugin-transform-runtime":"^7.18.10"},"peerDependencies":{"kafkajs":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kafka-lz4-lite_1.0.3_1685547546337_0.6494772372657693","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"kafka-lz4-lite","version":"1.0.4","keywords":["kafka","kafkajs","lz4","lz4js","codec","compression","decompression"],"author":{"name":"Alexander Vukov"},"license":"MIT","_id":"kafka-lz4-lite@1.0.4","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"dist":{"shasum":"50b5b96441dbb2e109e2480c165193ec8176a4ee","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-1.0.4.tgz","fileCount":21,"integrity":"sha512-kM7Tu8AwPuCkVxCxmw2h24vv8S8/zkaxFkY6t4is8FHxsJkg23+3zJGigAsPfuKZkhyQxkZqkTOc7OfbTwe65A==","signatures":[{"sig":"MEQCIFHfkzYSr2i33WxUAce4SpMjptEiQn7aIUkGefBNl0SJAiAjtjiYM+2Z3gfCQjBsR3INdwmz72t5swuHV4PK2SR5nQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24757},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./worker":{"import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"gitHead":"9cb7dcf9b1311facd3ed4e0e6165b1341b46dc57","scripts":{"build":"rimraf dist && tsc && rollup -c"},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"repository":{"url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git","type":"git"},"_npmVersion":"9.5.1","description":"Pure JS Kafka LZ4 codec for kafkajs","directories":{},"_nodeVersion":"18.16.0","dependencies":{"lz4js":"^0.2.0","piscina":"^3.2.0","@babel/runtime":"^7.18.9"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"worker":["./dist/worker.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","rollup":"^2.78.1","@babel/cli":"^7.18.10","typescript":"^5.0.4","@babel/core":"^7.18.10","@types/node":"^20.2.5","@types/estree":"^1.0.0","@babel/preset-env":"^7.18.10","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.2","@babel/preset-typescript":"^7.18.6","@rollup/plugin-node-resolve":"^13.3.0","@babel/plugin-transform-runtime":"^7.18.10"},"peerDependencies":{"kafkajs":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kafka-lz4-lite_1.0.4_1685547876771_0.17927507112469465","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"kafka-lz4-lite","version":"1.0.5","keywords":["kafka","kafkajs","lz4","lz4js","codec","compression","decompression"],"author":{"name":"Alexander Vukov"},"license":"MIT","_id":"kafka-lz4-lite@1.0.5","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"dist":{"shasum":"fa721128f79c4f52516551e3eec8e76a583ccece","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-1.0.5.tgz","fileCount":21,"integrity":"sha512-d8JMJ+6dWo4ublkY5HFYV0SyW1dUs0QZKsNPLapmFkXJTLhTXbUX1sjivLFXbGW63Dso/fbK+21PfQoA5hNhBQ==","signatures":[{"sig":"MEUCIC5pz+JQw8pY5xg3Vh4BrbJ6zx5cTYtwRd/wivejSzWoAiEA821vUpT1GtU9sYurDttt0piLaqhg4uBN00EQ7ldImTw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25888},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./worker":{"import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"gitHead":"0f3d3bad5d6032da8c9db805859d9d1e6533bc61","scripts":{"build":"rimraf dist && tsc && rollup -c"},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"repository":{"url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git","type":"git"},"_npmVersion":"9.5.1","description":"Pure JS Kafka LZ4 codec for kafkajs","directories":{},"_nodeVersion":"18.16.0","dependencies":{"lz4js":"^0.2.0","piscina":"^3.2.0","@babel/runtime":"^7.18.9"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"worker":["./dist/worker.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","rollup":"^2.78.1","@babel/cli":"^7.18.10","typescript":"^5.0.4","@babel/core":"^7.18.10","@types/node":"^20.2.5","@types/estree":"^1.0.0","@babel/preset-env":"^7.18.10","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.2","@babel/preset-typescript":"^7.18.6","@rollup/plugin-node-resolve":"^13.3.0","@babel/plugin-transform-runtime":"^7.18.10"},"peerDependencies":{"kafkajs":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kafka-lz4-lite_1.0.5_1685600064593_0.4435620822573143","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"kafka-lz4-lite","version":"2.0.0","keywords":["kafka","kafkajs","lz4","lz4-lite","codec","compression","decompression","pure-js"],"author":{"name":"Alexander Vukov"},"license":"MIT","_id":"kafka-lz4-lite@2.0.0","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"dist":{"shasum":"f39b33764d7a78b8ec1c583712db83f35c205259","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-2.0.0.tgz","fileCount":16,"integrity":"sha512-eVSOPmVX3jGlS+xlPneBebkm8zFic6xkWjXiU7mD2Evmo99vuAZc8SjVC5A0aXbSdvXB2AFTRPHm5UUaTV1r/w==","signatures":[{"sig":"MEUCIQDVaaJoKV45KlW9NK4mf4W+xH8+Aog1XeDRjPjDIquPQAIgGabvSuaNZDEWmJh2zIu83vfVg4DpAaDRLJIkPnOPaj8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10963},"main":"./dist/cjs/index.js","type":"module","types":"./dist/types/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=16"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./worker":{"types":"./dist/types/worker.d.ts","import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"gitHead":"2a8ebfcf676e5a3bc3e29fb091234159c4f61281","scripts":{"lint":"biome check","test":"npm run build && node --import tsx --test test/**/*.test.ts","build":"npm run clean && npm run build:esm && npm run build:cjs && npm run build:types && node scripts/fixup-dual.mjs","clean":"rm -rf dist","format":"biome format --write","lint:fix":"biome check --write","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","build:types":"tsc -p tsconfig.types.json","prepublishOnly":"npm run lint && npm run build"},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"repository":{"url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"Fast, pure JS Kafka LZ4 codec for kafkajs (powered by lz4-lite), with zero native build step","directories":{},"_nodeVersion":"24.14.0","dependencies":{"piscina":"4.9.2","lz4-lite":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","kafkajs":"^2.2.4","typescript":"^5.6.0","@types/node":"^22.0.0","@biomejs/biome":"2.5.0"},"peerDependencies":{"kafkajs":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kafka-lz4-lite_2.0.0_1781774911012_0.2635465411268425","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"kafka-lz4-lite","version":"2.0.1","description":"Fast, pure JS Kafka LZ4 codec for kafkajs (powered by lz4-lite), with zero native build step","type":"module","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./worker":{"types":"./dist/types/worker.d.ts","import":"./dist/esm/worker.js","require":"./dist/cjs/worker.js"}},"scripts":{"clean":"rm -rf dist","build:esm":"tsc -p tsconfig.esm.json","build:cjs":"tsc -p tsconfig.cjs.json","build:types":"tsc -p tsconfig.types.json","build":"npm run clean && npm run build:esm && npm run build:cjs && npm run build:types && node scripts/fixup-dual.mjs","lint":"biome check","lint:fix":"biome check --write","format":"biome format --write","test":"npm run build && node --import tsx --test test/**/*.test.ts","prepublishOnly":"npm run lint && npm run build"},"repository":{"type":"git","url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git"},"keywords":["kafka","kafkajs","lz4","lz4-lite","codec","compression","decompression","pure-js"],"author":{"name":"Alexander Vukov"},"license":"MIT","bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","engines":{"node":">=16"},"devDependencies":{"@biomejs/biome":"2.5.2","@types/node":"^22.0.0","kafkajs":"^2.2.4","tsx":"^4.19.0","typescript":"^5.6.0"},"dependencies":{"lz4-lite":"^1.1.2","piscina":"4.9.3"},"peerDependencies":{"kafkajs":"^2.0.0"},"gitHead":"9d7c8f2a2c133a4cb395d38681604c8f37a6db7e","_id":"kafka-lz4-lite@2.0.1","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-vs4bqTSAzvfdn4ainKR0ByYxKmmVhIgl4LXRcyh+AJwuRjyMRyU6AXjRSzMxlFHFa5TAAJEE4JrDsH378KvjWw==","shasum":"9caaf4ee6dbbedf314f5f31aa81287a595e49838","tarball":"https://registry.npmjs.org/kafka-lz4-lite/-/kafka-lz4-lite-2.0.1.tgz","fileCount":16,"unpackedSize":10963,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDsZhMMLAhSDm2mf6pzQTsyUimFrNTGsFdZo1U3P4w0oAIgSA612JzQYJoKcsYeGiuKFu0a9DVQQ003mUdzffoxtOo="}]},"_npmUser":{"name":"alex-vukov","email":"alexvukov@gmail.com"},"directories":{},"maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kafka-lz4-lite_2.0.1_1783107103270_0.9626922908975655"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-30T15:36:11.115Z","modified":"2026-07-03T19:31:43.525Z","1.0.0":"2023-05-30T15:36:11.271Z","1.0.1":"2023-05-31T04:27:30.131Z","1.0.2":"2023-05-31T15:09:54.396Z","1.0.3":"2023-05-31T15:39:06.567Z","1.0.4":"2023-05-31T15:44:36.923Z","1.0.5":"2023-06-01T06:14:24.815Z","2.0.0":"2026-06-18T09:28:31.154Z","2.0.1":"2026-07-03T19:31:43.427Z"},"bugs":{"url":"https://github.com/alex-vukov/kafka-lz4-lite/issues"},"author":{"name":"Alexander Vukov"},"license":"MIT","homepage":"https://github.com/alex-vukov/kafka-lz4-lite#readme","keywords":["kafka","kafkajs","lz4","lz4-lite","codec","compression","decompression","pure-js"],"repository":{"type":"git","url":"git+https://github.com/alex-vukov/kafka-lz4-lite.git"},"description":"Fast, pure JS Kafka LZ4 codec for kafkajs (powered by lz4-lite), with zero native build step","maintainers":[{"name":"alex-vukov","email":"alexvukov@gmail.com"}],"readme":"# Kafka LZ4 Lite\n \n A fast, lightweight, **pure-JS** LZ4 codec for\n [kafkajs](https://www.npmjs.com/package/kafkajs) — compression and decompression\n of Kafka payloads with **zero native build step**.\n \n ## Why Kafka LZ4 Lite\n \n - **Pure JavaScript, zero native dependencies.** No `node-gyp`, no prebuilt\n   binaries, no toolchain — it installs and runs anywhere Node does, including\n   slim/Alpine and serverless images.\n - **Fast.** Now powered by [`lz4-lite`](https://www.npmjs.com/package/lz4-lite),\n   a clean, spec-compliant LZ4 reimplementation, decode throughput is on par with\n   native C++/Rust and WASM codecs (see [Performance](#performance)).\n - **Small, predictable memory footprint.** Unlike native bindings — which\n   allocate a full LZ4 block buffer per call — and WASM codecs, which reserve a\n   large fixed linear heap, this codec keeps a low, steady memory profile, so it\n   stays comfortably inside tight container/pod limits.\n - **Fully typed.** All exported functions and objects ship with TypeScript\n   declarations.\n - **Spec-compliant frames.** Interoperable with `liblz4`/`lz4` and other\n   compliant LZ4 codecs — frames it produces are decoded by them, and vice-versa.\n \n ## Performance\n \n `kafka-lz4-lite` recently migrated its underlying codec from `lz4js` to\n `lz4-lite`. The upgrade is a **major step up** while keeping the same simple API:\n \n | metric (kafkajs consuming 200k LZ4 messages) | before (`lz4js`) | now (`lz4-lite`) | improvement |\n | -------------------------------------------- | ---------------- | ---------------- | ----------- |\n | decode time                                  | 1312 ms          | 92 ms            | **~14× faster** |\n | end-to-end consume                           | 1526 ms          | 280 ms           | **~5× faster**  |\n | peak memory                                  | 660 MB           | 432 MB           | **~35% lower**  |\n \n Measured on Node 20 (Apple M1 Max) decoding ~206 MB of realistic JSON events;\n your numbers will vary with hardware, payload, and batch size. Decode speed now\n lands in the same range as native and WASM codecs — without any binary artifact.\n \n ## Usage\n \n Register the codec once during application startup; it then applies to all\n kafkajs producers and consumers globally:\n \n ```js\n import { CompressionTypes, CompressionCodecs } from \"kafkajs\";\n import { codec } from \"kafka-lz4-lite\";\n \n CompressionCodecs[CompressionTypes.LZ4] = codec;\n ```\n \n ## Worker-thread variant (optional)\n \n The library also offers a worker-pool codec built on\n [Piscina](https://www.npmjs.com/package/piscina), which offloads compression and\n decompression to worker threads:\n \n ```js\n import { CompressionTypes, CompressionCodecs } from \"kafkajs\";\n import { createCodec } from \"kafka-lz4-lite/worker\";\n \n const codec = createCodec(); // accepts the same options as new Piscina()\n // e.g. createCodec({ minThreads: 2, maxThreads: 4 })\n // The 'filename' option is ignored — the worker file is provided internally.\n \n CompressionCodecs[CompressionTypes.LZ4] = codec;\n ```\n \n Because kafkajs invokes the codec once per *record batch* (not per message),\n decode work is already well amortized, and the synchronous `codec` above is\n usually the faster choice — moving each batch across the worker-thread boundary\n adds copy/serialization overhead. Reach for the worker variant only for unusually\n large payloads, and **benchmark your own workload** before adopting it.\n \n ## Requirements\n \n Node.js >= 16.0.0","readmeFilename":"README.md"}