{"_id":"compress-utils","_rev":"1744582","name":"compress-utils","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","dist-tags":{"latest":"0.12.1"},"maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"time":{"modified":"2026-11-19T03:01:40.000Z","created":"2026-05-16T00:15:05.083Z","0.12.1":"2026-11-13T16:44:04.745Z","0.12.0":"2026-10-30T22:21:22.198Z","0.11.2":"2026-10-25T23:25:39.056Z","0.11.1":"2026-10-21T20:40:23.857Z","0.11.0":"2026-10-21T20:02:19.607Z","0.10.1":"2026-10-16T22:43:37.713Z","0.9.0":"2026-10-12T16:36:20.199Z","0.8.0":"2026-07-17T01:13:57.317Z","0.7.1":"2026-05-17T20:58:50.572Z","0.7.0":"2026-05-16T15:52:57.673Z","0.7.0-rc.1":"2026-05-16T00:15:05.083Z"},"users":{},"author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"versions":{"0.12.1":{"_id":"compress-utils@0.12.1","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"8ebd539cde61a49dc47670d8719637755b994e98","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.12.1.tgz","fileCount":186,"integrity":"sha512-Tca3z8sgT8WkKe1dctSRhrV6IQRI0Cd+rUz3GvoQZCe975VmqFSiq5uB8iskwnlTbACB8FVdm6qg2ZyREB2eKA==","signatures":[{"sig":"MEQCIBusAAASAYqg+xp+HDwC4PcyzmRYtjJnT3gma0pawRwXAiBOYtuSSfTOg1Eie4FfZsWxkTzGi91/Z3siLOYqJBcaNg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHToq+JkvtYLybzVM/akPo+1Nx1W49Zc36xYM7RO797OAiBtLgUGUHbMAtgNt0x6vH2kUbs7CGguxCy/uwBI5B5Wtw=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.12.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3809423,"size":1378530,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.12.1.tgz"},"name":"compress-utils","type":"module","author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./deflate":"./dist/algorithms/deflate/index.js","./lz4_raw":"./dist/algorithms/lz4_raw/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./lzo/decompress":"./dist/algorithms/lzo/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./deflate/compress":"./dist/algorithms/deflate/compress/index.js","./lz4_raw/compress":"./dist/algorithms/lz4_raw/compress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js","./deflate/decompress":"./dist/algorithms/deflate/decompress/index.js","./lz4_raw/decompress":"./dist/algorithms/lz4_raw/decompress/index.js"},"gitHead":"57f80f9d8678ee2dd6228626240cd621f03d982f","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":{"default":"./dist/core/resolve-node.js","compress-utils-wasm-source":"./dist/wasm-source/resolve-node-source.mjs"},"types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"license":"MIT","scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","prepack":"node -e \"require('node:fs').copyFileSync('../../THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md')\"","build:ts":"tsc -p tsconfig.json && node scripts/copy-wasm-source.mjs","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"version":"0.12.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"homepage":"https://github.com/dupontcyborg/compress-utils#readme","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.2.2","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"sideEffects":false,"_nodeVersion":"22.23.4","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^5.0.5","esbuild":"^0.28.0","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"2.6.3","@playwright/test":"^1.60.0","@vitest/coverage-v8":"^5.0.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/compress-utils_0.12.1_1794588244602_0.3006931755637873"},"publish_time":1794588244745,"_cnpm_publish_time":1794588244745},"0.12.0":{"_id":"compress-utils@0.12.0","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"813fdac9675fe1084b6ccd55cb21fe24a20dda22","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.12.0.tgz","fileCount":186,"integrity":"sha512-k4IuPbVBvNI9gACsOZNyQQ8kKVwCSa8j/l4fpJLW9gDV3gjRvwyhqRD8aR+TeK0XYpCfsLZQxluGYePcJp0A2Q==","signatures":[{"sig":"MEYCIQDJjGmI0/vSS9vVbWFrmnj9yFri+y9qMjikxryGlVIZOgIhAKgfYQ8+WK211p8r+S27v/CtsHwqbalTzjj6JLeWdL+X","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCL4vC+reWd4A3lwyv+R7QPkNO08vOpEWkeXdAiaDiiFQIhAOrblUBZ//uwLttHHk8BVOmKtwwqTKAv1kMdtZwG/iop"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.12.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3804196,"size":1377013,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.12.0.tgz"},"name":"compress-utils","type":"module","author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./deflate":"./dist/algorithms/deflate/index.js","./lz4_raw":"./dist/algorithms/lz4_raw/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./lzo/decompress":"./dist/algorithms/lzo/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./deflate/compress":"./dist/algorithms/deflate/compress/index.js","./lz4_raw/compress":"./dist/algorithms/lz4_raw/compress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js","./deflate/decompress":"./dist/algorithms/deflate/decompress/index.js","./lz4_raw/decompress":"./dist/algorithms/lz4_raw/decompress/index.js"},"gitHead":"7b6ce41968799d2498987a812047b4f907fae84d","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":{"default":"./dist/core/resolve-node.js","compress-utils-wasm-source":"./dist/wasm-source/resolve-node-source.mjs"},"types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"license":"MIT","scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","prepack":"node -e \"require('node:fs').copyFileSync('../../THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md')\"","build:ts":"tsc -p tsconfig.json && node scripts/copy-wasm-source.mjs","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"version":"0.12.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"homepage":"https://github.com/dupontcyborg/compress-utils#readme","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.2.1","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"sideEffects":false,"_nodeVersion":"22.23.4","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^5.0.5","esbuild":"^0.28.0","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"2.6.3","@playwright/test":"^1.60.0","@vitest/coverage-v8":"^5.0.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/compress-utils_0.12.0_1793398882068_0.435214279884651"},"publish_time":1793398882198,"_cnpm_publish_time":1793398882198},"0.11.2":{"_id":"compress-utils@0.11.2","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"2a53195783f3b3372a7ee4c5c9e8c9dd5bb20643","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.11.2.tgz","fileCount":185,"integrity":"sha512-UhBsPNnUJC2RYGnAZr8Zg0yPuFS8qf+EdJrcNsK42xp0ceFZk0yJ/NOmbV19iP1tAFWCWuKOGuyAaoRqz4rpAQ==","signatures":[{"sig":"MEQCIDaRWmqNosiUcrT3vQBxpzeb/+jOLoCLVJmYEE27UtCiAiBYviUqoY4XV40QJYdM7sSZfothtnb/3I6TBJ8mPlyauQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC68WczmZTRxCNblcH3qYw39kwwPAqo5zZr8ADQ2yipbAIhAKh1GAVB9IkBxlqsZclAX+nGXzqeEY14/gFJZqDgJ0HC"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.11.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3646757,"size":1312848,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.11.2.tgz"},"name":"compress-utils","type":"module","author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./deflate":"./dist/algorithms/deflate/index.js","./lz4_raw":"./dist/algorithms/lz4_raw/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./lzo/decompress":"./dist/algorithms/lzo/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./deflate/compress":"./dist/algorithms/deflate/compress/index.js","./lz4_raw/compress":"./dist/algorithms/lz4_raw/compress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js","./deflate/decompress":"./dist/algorithms/deflate/decompress/index.js","./lz4_raw/decompress":"./dist/algorithms/lz4_raw/decompress/index.js"},"gitHead":"fa6e8728151428cde6701c805ac7c63c919b96d0","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"license":"MIT","scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","prepack":"node -e \"require('node:fs').copyFileSync('../../THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md')\"","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"version":"0.11.2","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"homepage":"https://github.com/dupontcyborg/compress-utils#readme","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.2.1","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"sideEffects":false,"_nodeVersion":"22.23.3","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^5.0.5","esbuild":"^0.28.0","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"2.6.3","@playwright/test":"^1.60.0","@vitest/coverage-v8":"^5.0.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/compress-utils_0.11.2_1792970738941_0.8895351081664449"},"publish_time":1792970739056,"_cnpm_publish_time":1792970739056},"0.11.1":{"name":"compress-utils","version":"0.11.1","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"license":"MIT","_id":"compress-utils@0.11.1","maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"homepage":"https://github.com/dupontcyborg/compress-utils#readme","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"96ba43af7e7ae2977f4966e6cb3b3d4f55ecfe7c","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.11.1.tgz","fileCount":185,"integrity":"sha512-Jh9pVl087uHi9qPXn3/D5Xwde7qAJP2TQaqS+osgtiPLi7IPvVNZoUWtnA8ZjiilNZJZCRC8w6RV1PIfHnE7kQ==","signatures":[{"sig":"MEQCIBDjgrnCjseUDnRdXfxJE7dRTjhRz0Bcdw1V+sUs84dPAiBE4FC2wJR4H4F9wggCatKaFYiuaMLGar3RxydnV+vd8w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCAC2wuNgynnkb4TO/mfOVV8gM6glJ6BHd+LKMzRqzR1QIhAPnjZ8zNttlQh1t9tmDOLy2wNIC8t69j5MkaNVRxNT00","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.11.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3632736,"size":1300903,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.11.1.tgz"},"type":"module","engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./deflate":"./dist/algorithms/deflate/index.js","./lz4_raw":"./dist/algorithms/lz4_raw/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./lzo/decompress":"./dist/algorithms/lzo/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./deflate/compress":"./dist/algorithms/deflate/compress/index.js","./lz4_raw/compress":"./dist/algorithms/lz4_raw/compress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js","./deflate/decompress":"./dist/algorithms/deflate/decompress/index.js","./lz4_raw/decompress":"./dist/algorithms/lz4_raw/decompress/index.js"},"gitHead":"1c78ff5da3a430c62244132eeb10deb1e97291ef","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","prepack":"node -e \"require('node:fs').copyFileSync('../../THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md')\"","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.2.0","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","esbuild":"^0.28.0","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"2.5.9","@playwright/test":"^1.60.0","@vitest/coverage-v8":"^4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/compress-utils_0.11.1_1792615223608_0.9660146039884394","host":"s3://npm-registry-packages-npm-production"},"publish_time":1792615223857,"_cnpm_publish_time":1792615223857},"0.11.0":{"name":"compress-utils","version":"0.11.0","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"license":"MIT","_id":"compress-utils@0.11.0","maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"homepage":"https://github.com/dupontcyborg/compress-utils#readme","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"0a2386ad28409b21fdb510217e348d32ef118e77","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.11.0.tgz","fileCount":185,"integrity":"sha512-khwGim+gYEqzm4hJki0hXnN4pp6iNzIxln1Lv6NpYG/WvUXyrOlGChcaA7mWpKKtD8X5rFoO1CZYhNUXL0cXAw==","signatures":[{"sig":"MEUCIEPwu/E6Qmj2NnGdtvYcuewdw3HJMZ94dPYhnRPvq6YQAiEAl9W3DWrHsHsDX/Hk962zZuRTyx8VUqohJrvRiI5Lxe8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD5c7TIMvDth8Ucko/RxLssOCJwqtQrF2nl/EKOXT90DQIhAJXV1DT9h7kSE052kRemZvXCCdG2e3iTHPTBdpbe8mJG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.11.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3632736,"size":1300891,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.11.0.tgz"},"type":"module","engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./deflate":"./dist/algorithms/deflate/index.js","./lz4_raw":"./dist/algorithms/lz4_raw/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./lzo/decompress":"./dist/algorithms/lzo/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./deflate/compress":"./dist/algorithms/deflate/compress/index.js","./lz4_raw/compress":"./dist/algorithms/lz4_raw/compress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js","./deflate/decompress":"./dist/algorithms/deflate/decompress/index.js","./lz4_raw/decompress":"./dist/algorithms/lz4_raw/decompress/index.js"},"gitHead":"85170f148e80ca78f11b5a789a71c8b27b6cdd5a","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","prepack":"node -e \"require('node:fs').copyFileSync('../../THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md')\"","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.2.0","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","esbuild":"^0.28.0","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"2.5.9","@playwright/test":"^1.60.0","@vitest/coverage-v8":"^4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/compress-utils_0.11.0_1792612939491_0.7268816264813833","host":"s3://npm-registry-packages-npm-production"},"publish_time":1792612939607,"_cnpm_publish_time":1792612939607},"0.10.1":{"name":"compress-utils","version":"0.10.1","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"license":"MIT","_id":"compress-utils@0.10.1","maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"homepage":"https://github.com/dupontcyborg/compress-utils#readme","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"6a63458d6b6b4547ab31da63430b260fa1c46916","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.10.1.tgz","fileCount":185,"integrity":"sha512-d4d6WSty1+PXe7/QvjgzR4kB5Kx3AdQTFMwJjI01zMOtWpHZCmlcrvPznCfnovLwDREWDVIYl4MFuVd0NZEGWQ==","signatures":[{"sig":"MEUCIBlxSO0Rj6gWpmJ6VKS9T390Vw6kHl/pCmIwbhNOf9XDAiEAqAK9SgFf3wVzXvZxktvQML7c8tyYKf9mbk5JpSpzgaQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIASEYnAhCLIVC1jxXD9viYpw4TUvh/VP2cR7vkHQ9m67AiEA80xB9WWEn0Yo+N1yEX6rsKvrn1jNs1D08DkV6dWdiic=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.10.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3562652,"size":1273203,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.10.1.tgz"},"type":"module","engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./deflate":"./dist/algorithms/deflate/index.js","./lz4_raw":"./dist/algorithms/lz4_raw/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./lzo/decompress":"./dist/algorithms/lzo/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./deflate/compress":"./dist/algorithms/deflate/compress/index.js","./lz4_raw/compress":"./dist/algorithms/lz4_raw/compress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js","./deflate/decompress":"./dist/algorithms/deflate/decompress/index.js","./lz4_raw/decompress":"./dist/algorithms/lz4_raw/decompress/index.js"},"gitHead":"e70d4e319c707636467e1cb7c29a7283f6738609","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","prepack":"node -e \"require('node:fs').copyFileSync('../../THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md')\"","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.2.0","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","esbuild":"^0.28.0","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"2.5.9","@playwright/test":"^1.60.0"},"_npmOperationalInternal":{"tmp":"tmp/compress-utils_0.10.1_1792190617612_0.13194497945421912","host":"s3://npm-registry-packages-npm-production"},"publish_time":1792190617713,"_cnpm_publish_time":1792190617713},"0.9.0":{"_id":"compress-utils@0.9.0","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"8dc1b49cce1cf86b08fe657ff0094cbeaa3c495a","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.9.0.tgz","fileCount":185,"integrity":"sha512-5ItLJ3yjgPvtO9rlRbk918lQdOff6C2bcirEkl8wOGUY2S21FQwfQkCTJEAlYdYZuZbqefb6UzCYdv/Uf5r/+Q==","signatures":[{"sig":"MEUCIQDm6pMB78RXJVCHl7PH3cDnpxjDhfhLO8XqgkFOrLa3cQIgVUjKCfjsHHtUWw4q5WFDcrdIlltZQCEP1rmFZ8hH7eA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCgBsM4scNbXRNhdfiWJoF81Mcec6BiPepgVyWTGhbvrAIhAKax01fmhXKxwzx4DEW5kh90IDpsZRCTAZMPYdl7Zfwu"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3512115,"size":1255530,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.9.0.tgz"},"name":"compress-utils","type":"module","author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./deflate":"./dist/algorithms/deflate/index.js","./lz4_raw":"./dist/algorithms/lz4_raw/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./lzo/decompress":"./dist/algorithms/lzo/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./deflate/compress":"./dist/algorithms/deflate/compress/index.js","./lz4_raw/compress":"./dist/algorithms/lz4_raw/compress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js","./deflate/decompress":"./dist/algorithms/deflate/decompress/index.js","./lz4_raw/decompress":"./dist/algorithms/lz4_raw/decompress/index.js"},"gitHead":"1ce4ce20719ccb1d2f9598eeac2899dba0989c6b","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"license":"MIT","scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","prepack":"node -e \"require('node:fs').copyFileSync('../../THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md')\"","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"version":"0.9.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"homepage":"https://github.com/dupontcyborg/compress-utils#readme","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.2.0","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"sideEffects":false,"_nodeVersion":"22.23.3","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","esbuild":"^0.28.0","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"2.5.9","@playwright/test":"^1.60.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/compress-utils_0.9.0_1791822980078_0.352903696928605"},"publish_time":1791822980199,"_cnpm_publish_time":1791822980199},"0.8.0":{"name":"compress-utils","version":"0.8.0","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma","snappy"],"author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"license":"MIT","_id":"compress-utils@0.8.0","maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"homepage":"https://github.com/dupontcyborg/compress-utils#readme","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"b331bb0bc5543e8075c59d11b31f51d711071f21","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.8.0.tgz","fileCount":151,"integrity":"sha512-aUk794YEft2+9mzgITcjXIgWTyWPpZj0EjSWWnbk9G2JhJjfsUCh7v6Aal/4VXmpN/0M1wKv39vWiUEtF156Zw==","signatures":[{"sig":"MEYCIQDXB68o22WV2aqordQTFTsk8aOEi4cM5QtzJ1SQQ5ZoHAIhAOGJVa9jZGWKPb/SzA0A9ifnNSqxJ4D8nHxOMpjKJdMk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3395911,"size":1237363,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.8.0.tgz"},"type":"module","engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./gzip":"./dist/algorithms/gzip/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js","./snappy":"./dist/algorithms/snappy/index.js","./xz/compress":"./dist/algorithms/xz/compress/index.js","./bz2/compress":"./dist/algorithms/bz2/compress/index.js","./lz4/compress":"./dist/algorithms/lz4/compress/index.js","./gzip/compress":"./dist/algorithms/gzip/compress/index.js","./xz/decompress":"./dist/algorithms/xz/decompress/index.js","./zlib/compress":"./dist/algorithms/zlib/compress/index.js","./zstd/compress":"./dist/algorithms/zstd/compress/index.js","./bz2/decompress":"./dist/algorithms/bz2/decompress/index.js","./lz4/decompress":"./dist/algorithms/lz4/decompress/index.js","./brotli/compress":"./dist/algorithms/brotli/compress/index.js","./gzip/decompress":"./dist/algorithms/gzip/decompress/index.js","./snappy/compress":"./dist/algorithms/snappy/compress/index.js","./zlib/decompress":"./dist/algorithms/zlib/decompress/index.js","./zstd/decompress":"./dist/algorithms/zstd/decompress/index.js","./brotli/decompress":"./dist/algorithms/brotli/decompress/index.js","./snappy/decompress":"./dist/algorithms/snappy/decompress/index.js"},"gitHead":"83238227ebf2aa97f8352e377afeb2ad5ffede7e","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","test:size":"vitest run tests/bundle.test.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:3b7b4a94-b1c8-42c6-9a74-5315ba17c0b1"}},"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"12.0.1","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz, snappy, gzip - all tree-shakeable.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","@playwright/test":"^1.60.0"},"_npmOperationalInternal":{"tmp":"tmp/compress-utils_0.8.0_1784250837163_0.8393181869558877","host":"s3://npm-registry-packages-npm-production"},"publish_time":1784250837317,"_cnpm_publish_time":1784250837317},"0.7.1":{"name":"compress-utils","version":"0.7.1","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma"],"author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"license":"MIT","_id":"compress-utils@0.7.1","maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"homepage":"https://github.com/dupontcyborg/compress-utils#readme","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"dfbc28165e6d1732ece78d7a0f5072cccd8e8b91","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.7.1.tgz","fileCount":61,"integrity":"sha512-TMmTeUh0pQwnG8HoBDHe9q6uCcWQxPxaifQ820inQ0933NJH8uer4KmLCCpKYP3ytd1KZpWRwf/+jBOJVaETJA==","signatures":[{"sig":"MEUCIQDDQpQ1X6IXZjQSj+XFQa0EvGRgQD6DOZWBxJa7Ewmi1wIgZtiGF9iDKrygh0WZj64sY3MlHN3VJYK/XWA6ka7i3EU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.7.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1821283,"size":694276,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.7.1.tgz"},"type":"module","engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js"},"gitHead":"27a59b4ea4cf0e205ec92bd5e8f73c478ca46e57","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"_npmUser":{"name":"dupontcyborg","email":"nico@dupont.live"},"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"10.9.7","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz - all tree-shakeable.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","@playwright/test":"^1.60.0"},"_npmOperationalInternal":{"tmp":"tmp/compress-utils_0.7.1_1779051530370_0.7032908315058137","host":"s3://npm-registry-packages-npm-production"},"publish_time":1779051530572,"_cnpm_publish_time":1779051530572},"0.7.0":{"name":"compress-utils","version":"0.7.0","keywords":["compression","decompression","wasm","webassembly","zstd","brotli","zlib","gzip","bzip2","lz4","xz","lzma"],"author":{"url":"https://nico.codes","name":"Nicolas Dupont","email":"nico@dupont.live"},"license":"MIT","_id":"compress-utils@0.7.0","maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"homepage":"https://github.com/dupontcyborg/compress-utils#readme","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"dist":{"shasum":"1a58c774278180db1be817794f1574a0ff218c9b","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.7.0.tgz","fileCount":61,"integrity":"sha512-Ozt+M2l4zGd4BqgseSotUw/9AHb+TC4wuMWRb9LSAESQW7xhxBSth1OQFYMfFSt6zQ26byN3HB/EL2RDMMJ2jQ==","signatures":[{"sig":"MEUCIQD7Ug3jBa/ppXTFnDUFFlGlNcVTt7pSWvgVkrOsgqcuMQIgP2y6Iqm5ZwY/lG52zvcZ0cMILhgxXXZj6KlE+u5AgZU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compress-utils@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1821554,"size":694347,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.7.0.tgz"},"type":"module","engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js"},"gitHead":"b1022a0928da44297217874ffeacdcfcf48e4b04","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"scripts":{"lint":"biome lint .","test":"vitest run","build":"npm run build:wasm && npm run build:ts","check":"biome check .","format":"biome format --write .","build:ts":"tsc -p tsconfig.json","lint:fix":"biome lint --write .","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"_npmUser":{"name":"dupontcyborg","email":"nico@dupont.live"},"repository":{"url":"git+https://github.com/dupontcyborg/compress-utils.git","type":"git","directory":"bindings/wasm"},"_npmVersion":"10.9.7","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz — tree-shakeable per-algorithm imports.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","@playwright/test":"^1.60.0"},"_npmOperationalInternal":{"tmp":"tmp/compress-utils_0.7.0_1778946777466_0.07524895522441466","host":"s3://npm-registry-packages-npm-production"},"publish_time":1778946777673,"_cnpm_publish_time":1778946777673},"0.7.0-rc.1":{"name":"compress-utils","version":"0.7.0-rc.1","license":"MIT","_id":"compress-utils@0.7.0-rc.1","maintainers":[{"name":"dupontcyborg","email":"nico@dupont.live"}],"dist":{"shasum":"31cca1bbf91698ce401285b229639b69996549cb","tarball":"http://registry-npm.ywwl.com/compress-utils/download/compress-utils-0.7.0-rc.1.tgz","fileCount":61,"integrity":"sha512-dKfvWtJLz3p3L2wodnMUNGcLOl4PvhDzvUuf9mr+FauokttZ8SVjCVAaoh33naLndRgEslPiYjw2uV5+xRTNbg==","signatures":[{"sig":"MEUCIQCLDpi/TujK/twSA/Hz6qOah8uThfXtSv3q2t6HeB91agIgWRr3iJ39uSJLbSQ+lUjZp0N/FaVkBHJ3OZtpyDGiYHk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1818793,"size":693742,"noattachment":false,"key":"/compress-utils/-/compress-utils-0.7.0-rc.1.tgz"},"type":"module","engines":{"node":">=18"},"exports":{"./xz":"./dist/algorithms/xz/index.js","./bz2":"./dist/algorithms/bz2/index.js","./lz4":"./dist/algorithms/lz4/index.js","./zlib":"./dist/algorithms/zlib/index.js","./zstd":"./dist/algorithms/zstd/index.js","./brotli":"./dist/algorithms/brotli/index.js"},"gitHead":"58284c373dc5d1ca9beda89e5b793b85c6507c3d","imports":{"#resolver":{"bun":"./dist/core/resolve-browser.js","deno":"./dist/core/resolve-browser.js","node":"./dist/core/resolve-node.js","types":"./src/core/resolve-default.ts","browser":"./dist/core/resolve-browser.js","default":"./dist/core/resolve-default.js"}},"scripts":{"test":"vitest run","build":"npm run build:wasm && npm run build:ts","build:ts":"tsc -p tsconfig.json","test:bun":"bun test --bun tests/","test:deno":"deno run --allow-read --allow-env tests-runtime/deno-smoke.ts","build:wasm":"cmake -S ../.. -B ../../build-wasm -DBUILD_WASM_BINDINGS=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_CPP_BINDINGS=OFF -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build ../../build-wasm --target compress_utils_wasm -j","test:watch":"vitest","test:browser":"playwright test"},"_npmUser":{"name":"dupontcyborg","email":"nico@dupont.live"},"_npmVersion":"11.6.2","description":"WASM compression bindings for zstd, brotli, zlib, bz2, lz4, xz — tree-shakeable per-algorithm imports.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^22.0.0","@playwright/test":"^1.60.0"},"_npmOperationalInternal":{"tmp":"tmp/compress-utils_0.7.0-rc.1_1778890504826_0.802756866357798","host":"s3://npm-registry-packages-npm-production"},"publish_time":1778890505083,"_cnpm_publish_time":1778890505083}},"readme":"# compress-utils\n\n[![npm version](https://img.shields.io/npm/v/compress-utils.svg)](https://www.npmjs.com/package/compress-utils)\n[![npm downloads](https://img.shields.io/npm/dm/compress-utils.svg)](https://www.npmjs.com/package/compress-utils)\n[![WASM build](https://img.shields.io/github/actions/workflow/status/dupontcyborg/compress-utils/build_and_test_wasm.yml?label=wasm)](https://github.com/dupontcyborg/compress-utils/actions/workflows/build_and_test_wasm.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nOne portable API for Zstandard, Brotli, zlib, gzip, bzip2, LZ4, XZ/LZMA and Snappy, plus raw DEFLATE, LZ4 blocks and LZO decoding, in every JavaScript runtime, with decompression ahead of or on par with every other JavaScript and WASM library we tested. Tree-shakeable per-algorithm imports with TypeScript types included, all backed by one C core compiled to WebAssembly.\n\n## Installation\n\n```bash\nnpm install compress-utils\n# or: pnpm add / yarn add / bun add / deno add npm:compress-utils\n```\n\nESM only, with TypeScript types for every subpath and no system dependencies. Tested in CI on Node 20, 22 and 24, Bun, Deno 2.x and Chromium, Firefox and WebKit; it also loads from a CDN such as esm.sh ([CDN usage](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#cdn-no-bundler)).\n\n## Quick start\n\nEach algorithm is its own subpath import. Pick the one you need, and the rest stay out of your bundle.\n\n```ts\nimport { compress, decompress } from \"compress-utils/zstd\";\n\nconst input = new TextEncoder().encode(\"the quick brown fox \".repeat(50));\n\nconst compressed = await compress(input, { level: 9 });\nconst restored   = await decompress(compressed);\n```\n\nAvailable subpaths: `compress-utils/zstd`, `/brotli`, `/zlib`, `/bz2`, `/lz4`, `/xz`, `/snappy`, `/gzip`, plus the raw block formats `/deflate`, `/lz4_raw` and `/lzo/decompress`. The surface is identical across all of them. Each also has `/<algo>/decompress` and `/<algo>/compress` variants that ship only one direction for a much smaller `.wasm`; see [bundle size](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#bundle-size).\n\n## Performance\n\n<!-- bench:start -->\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/dupontcyborg/compress-utils/main/docs/benchmarks/img/readme-wasm-dark.png\">\n  <img src=\"https://raw.githubusercontent.com/dupontcyborg/compress-utils/main/docs/benchmarks/img/readme-wasm-light.png\" alt=\"Compression ratio against throughput in MB/s on a log axis for compress-utils for JavaScript and brotli-wasm, fflate, fzstd, lz4js, pako, snappyjs and zstd-wasm, one row per algorithm (zstd, brotli, zlib, xz, lz4, snappy, bz2) with compress on the left and decompress on the right, dickens one-shot on AWS c8g.xlarge (Graviton4, arm64), 2026-10-29\" width=\"830\">\n</picture>\n\ncompress-utils for JavaScript against other JavaScript compression libraries: speed against compression ratio.\n\nMeasured on AWS c8g.xlarge (Graviton4), dickens (10.2 MB of text), one-shot, 2026-10-29.\n\nFull results [here](https://github.com/dupontcyborg/compress-utils/blob/main/docs/benchmarks/wasm.md).\n<!-- bench:end -->\n\n<!-- size:start -->\n### Bundle size\n\nGzipped size in KiB of each algorithm's `.wasm` module (`gzip -9`, measured on the build of 2026-10-29): the default import ships both directions, while the `/compress` and `/decompress` subpaths ship only one.\n\n| Algorithm | Compress only | Decompress only | Both |\n| :--- | ---: | ---: | ---: |\n| zstd | 100.2 | 38.3 | 124.3 |\n| brotli | 152.1 | 85.0 | 168.8 |\n| zlib | 35.5 | 31.5 | 45.1 |\n| gzip | 35.2 | 31.4 | 44.9 |\n| xz | 52.2 | 47.0 | 64.8 |\n| lz4 | 34.2 | 20.3 | 43.4 |\n| bz2 | 25.5 | 23.1 | 35.7 |\n| snappy | 12.2 | 15.1 | 17.2 |\n\nEach algorithm is a separate module and unused code is tree-shaken, so a page pays only for the algorithms and directions it imports. How the modules were made smaller: [wasm-size.md](https://github.com/dupontcyborg/compress-utils/blob/main/docs/wasm-size.md).\n<!-- size:end -->\n\n## Supported algorithms\n\n<!-- BEGIN:algorithms -->\n<!-- Generated by tools/check-readmes.py from docs/readme/manifest.json. Edit the manifest and run `tools/check-readmes.py --fix`, not this block. -->\n\n| Algorithm | Subpath                         | Wire format                                                                              |\n|-----------|---------------------------------|------------------------------------------------------------------------------------------|\n| Zstandard | `compress-utils/zstd`           | ZSTD frame with content size                                                             |\n| Brotli    | `compress-utils/brotli`         | Raw Brotli stream                                                                        |\n| zlib      | `compress-utils/zlib`           | zlib wrapper (RFC 1950)                                                                  |\n| gzip      | `compress-utils/gzip`           | gzip stream (RFC 1952)                                                                   |\n| bzip2     | `compress-utils/bz2`            | bzip2 stream                                                                             |\n| LZ4       | `compress-utils/lz4`            | LZ4 frame (interoperable with the `lz4` CLI and `.lz4` files)                            |\n| XZ / LZMA | `compress-utils/xz`             | XZ stream with CRC64                                                                     |\n| Snappy    | `compress-utils/snappy`         | Raw Snappy block (interoperable with reference snappy and python-snappy)                 |\n| DEFLATE   | `compress-utils/deflate`        | Raw DEFLATE (RFC 1951), no wrapper                                                       |\n| LZ4 block | `compress-utils/lz4_raw`        | Raw LZ4 block, no frame or size prefix (one-shot compression, incremental decompression) |\n| LZO1X     | `compress-utils/lzo/decompress` | Raw LZO1X block (decompression only)                                                     |\n<!-- END:algorithms -->\n\nImports are independent: `import \"compress-utils/zstd\"` and `import \"compress-utils/brotli\"` pull in two separate `.wasm` modules, not a combined bundle. Files are marked `\"sideEffects\": false` so unused exports are tree-shaken aggressively. For per-module `.wasm` sizes, and the smaller decode-only and encode-only builds, see [bundle size](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#bundle-size).\n\n### Raw blocks and output capacity\n\nRaw block formats such as those inside Parquet and ORC pages don't record their decompressed size, so pass `expectedSize`, an upper bound on the output; the result holds only the bytes actually decoded. More in the [advanced guide](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#raw-blocks-and-output-capacity).\n\n```ts\nimport { decompress } from \"compress-utils/lz4_raw\";\n\nconst page = await decompress(block, { expectedSize: uncompressedPageSize });\n```\n\n## Streaming\n\n### Web Streams\n\n```ts\nimport { compressionStream, decompressionStream } from \"compress-utils/zstd\";\n\nawait fetch(\"/big-file.json\")\n    .then(r => r.body!.pipeThrough(compressionStream({ level: 3 })))\n    .then(s => s.pipeTo(uploadDestination));\n```\n\n### Manual streaming (with `using` for auto-cleanup)\n\n```ts\nimport { createCompressStream } from \"compress-utils/brotli\";\n\nusing cs = await createCompressStream({ level: 5 });\nconst chunks: Uint8Array[] = [];\nfor (const chunk of input) chunks.push(cs.write(chunk));\nchunks.push(cs.finish());\n// cs is destroyed automatically on scope exit (TS 5.2+ / Node 22+).\n```\n\nWithout `using`, call `cs.destroy()` explicitly. To stop at the end of one frame and get the bytes after it, create the decoder with `{ singleStream: true }`; see [stopping at the end of a stream](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#stopping-at-the-end-of-a-stream).\n\n## Compression levels\n\nEvery algorithm accepts a `level` from **1 (fastest) to 10 (smallest)**. The binding maps that to each algorithm's native range internally, so you don't need to know that Zstandard goes 1–22 and zlib goes 1–9. The default is `5`.\n\n```ts\nawait compress(input, { level: 1 });   // fastest\nawait compress(input, { level: 10 });  // smallest\n```\n\n## Errors and limits\n\nDecompression is bounded by default: output is capped at 1 GiB, so a hostile or corrupt input cannot exhaust memory. Change the cap with `setMaxDecompressedSize`, and see the [untrusted input guidance](https://github.com/dupontcyborg/compress-utils#untrusted-input) in the project README for what else to set when you decompress data you don't control.\n\nEvery failure throws a `CompressError`, which carries the underlying C status code and the algorithm name:\n\n```ts\nimport { compress, decompress, CompressError } from \"compress-utils/zstd\";\n\ntry {\n    await decompress(garbage);\n} catch (e) {\n    if (e instanceof CompressError) console.error(e.algorithm, e.code, e.message);\n}\n```\n\n`await version()` returns the library version (for example `\"0.12.1\"`), and `await setMaxDecompressedSize(bytes)` caps `decompress` for every algorithm (default 1 GiB; `0` = unbounded). Streams have no limit unless you pass one: `createDecompressStream({ maxOutput })` and `decompressionStream({ maxOutput })` throw a `CompressError` once the output passes it.\n\n## Concurrency\n\nEach WASM module instance runs on the thread that loaded it, so nothing is shared between workers: every Worker initializes its own instance and keeps its own streams. Synchronous calls block the calling thread, so run expensive ones in a Worker; see [preloading and synchronous calls](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#preloading-and-synchronous-calls).\n\n## License\n\nMIT. See [LICENSE](https://github.com/dupontcyborg/compress-utils/blob/main/LICENSE).\n\n---\n\nPart of [compress-utils](https://github.com/dupontcyborg/compress-utils). Built by [Nico Dupont](https://nico.codes).\n","_attachments":{},"homepage":"https://github.com/dupontcyborg/compress-utils#readme","bugs":{"url":"https://github.com/dupontcyborg/compress-utils/issues"},"license":"MIT"}