{"versions":{"1.3.2":{"name":"brotli","version":"1.3.2","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","dependencies":{"base64-js":"^1.1.2"},"devDependencies":{"mocha":"^2.2.1"},"browser":{"./dec/dictionary-data.js":"./dec/dictionary-browser.js"},"scripts":{"test":"mocha","prepublish":"make"},"gitHead":"40d0b9d4a2ede5c1b2d240641094e70a47882b0c","_id":"brotli@1.3.2","_shasum":"525a9cad4fcba96475d7d388f6aecb13eed52f46","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"dist":{"shasum":"525a9cad4fcba96475d7d388f6aecb13eed52f46","size":425833,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.3.2.tgz"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/brotli-1.3.2.tgz_1493710188882_0.9105583857744932"},"directories":{},"publish_time":1493710189109,"_cnpm_publish_time":1493710189109,"_hasShrinkwrap":false,"contributors":[]},"1.3.1":{"name":"brotli","version":"1.3.1","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","dependencies":{"base64-js":"^1.1.2"},"devDependencies":{"mocha":"^2.2.1"},"browser":{"./dec/dictionary-data.js":"./dec/dictionary-browser.js"},"scripts":{"test":"mocha","prepublish":"make"},"gitHead":"da44b7ac2aaf9884ac6fdd8dff37970b8704c6bf","_id":"brotli@1.3.1","_shasum":"352a6f3f6973c5a74fd4be04aba40b337b3b6a7e","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"dist":{"shasum":"352a6f3f6973c5a74fd4be04aba40b337b3b6a7e","size":425839,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.3.1.tgz"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/brotli-1.3.1.tgz_1473824079123_0.6083398039918393"},"directories":{},"publish_time":1473824079357,"_cnpm_publish_time":1473824079357,"_hasShrinkwrap":false,"contributors":[]},"1.3.0":{"name":"brotli","version":"1.3.0","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","dependencies":{"base64-js":"^1.1.2"},"devDependencies":{"mocha":"^2.2.1"},"browser":{"./dec/dictionary-data.js":"./dec/dictionary-browser.js"},"scripts":{"test":"mocha","prepublish":"make"},"gitHead":"c3ccc11964027dd0fcac4316a558cecab84dfc31","_id":"brotli@1.3.0","_shasum":"33d5b4e2aab9918efdcd56462f63eadadac0550b","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"dist":{"shasum":"33d5b4e2aab9918efdcd56462f63eadadac0550b","size":425836,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.3.0.tgz"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/brotli-1.3.0.tgz_1473579433713_0.7928538199048489"},"directories":{},"publish_time":1473579433957,"_cnpm_publish_time":1473579433957,"_hasShrinkwrap":false,"contributors":[]},"1.2.0":{"name":"brotli","version":"1.2.0","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","dependencies":{"brfs":"^1.4.0","pako":"^0.2.6","through":"^2.3.6"},"devDependencies":{"mocha":"^2.2.1"},"browser":{"./dec/dictionary-data.js":"./dec/dictionary-browser.js"},"browserify":{"transform":["./src/transform"]},"scripts":{"test":"mocha"},"gitHead":"e974146a5a38c8ff00f7866a05a238a6a334012d","_id":"brotli@1.2.0","_shasum":"b716947531fa780067886cda45fd770e8587edf0","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"dist":{"shasum":"b716947531fa780067886cda45fd770e8587edf0","size":516504,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.2.0.tgz"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/brotli-1.2.0.tgz_1459120847283_0.8294150321744382"},"directories":{},"publish_time":1459120848276,"_cnpm_publish_time":1459120848276,"_hasShrinkwrap":false,"contributors":[]},"1.1.0":{"name":"brotli","version":"1.1.0","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","dependencies":{"brfs":"^1.4.0","pako":"^0.2.6","through":"^2.3.6"},"devDependencies":{"mocha":"^2.2.1"},"browserify":{"transform":["./src/transform"]},"scripts":{"test":"mocha"},"gitHead":"d9f216d1d1d7926697f93e62b2c00656ca2a3e8e","_id":"brotli@1.1.0","_shasum":"475e2f465180b4fc59999d89ddfc3dc8ba07a76d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"dist":{"shasum":"475e2f465180b4fc59999d89ddfc3dc8ba07a76d","size":825350,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.1.0.tgz"},"directories":{},"publish_time":1428005667002,"_cnpm_publish_time":1428005667002,"_hasShrinkwrap":false,"contributors":[]},"1.0.2":{"name":"brotli","version":"1.0.2","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","gitHead":"1c176aee7f2222e9023cccfc5545bd4deef9e0e5","_id":"brotli@1.0.2","scripts":{},"_shasum":"548fcb29d1145e01c016931e07dc8f1505dcca86","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"dist":{"shasum":"548fcb29d1145e01c016931e07dc8f1505dcca86","size":464637,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.0.2.tgz"},"directories":{},"publish_time":1423343129134,"_cnpm_publish_time":1423343129134,"_hasShrinkwrap":false,"contributors":[]},"1.0.1":{"name":"brotli","version":"1.0.1","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","gitHead":"4981b6b8d4515e720dcf65138530a361f5b472fb","_id":"brotli@1.0.1","scripts":{},"_shasum":"ee068c0efbdcba1014915ddc8e5f3ce8756b9d97","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"dist":{"shasum":"ee068c0efbdcba1014915ddc8e5f3ce8756b9d97","size":463646,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.0.1.tgz"},"directories":{},"publish_time":1422982736932,"_cnpm_publish_time":1422982736932,"deprecated":"Bad compile","_hasShrinkwrap":false,"contributors":[]},"1.0.0":{"name":"brotli","version":"1.0.0","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","gitHead":"bf2ec30a01199ee3551d1a7c478bd525e220e72e","_id":"brotli@1.0.0","scripts":{},"_shasum":"f062e899dea65e8d95d716ea14b1c92506866b58","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.21","_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"dist":{"shasum":"f062e899dea65e8d95d716ea14b1c92506866b58","size":491251,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.0.0.tgz"},"directories":{},"publish_time":1411963957886,"_cnpm_publish_time":1411963957886,"_hasShrinkwrap":false,"contributors":[]},"1.3.3":{"name":"brotli","version":"1.3.3","description":"A port of the Brotli compression algorithm as used in WOFF2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/devongovett/brotli.js.git"},"keywords":["compress","decompress","encode","decode"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"homepage":"https://github.com/devongovett/brotli.js","dependencies":{"base64-js":"^1.1.2"},"devDependencies":{"mocha":"^2.2.1"},"browser":{"./dec/dictionary-data.js":"./dec/dictionary-browser.js"},"scripts":{"test":"mocha","prepublish":"make"},"gitHead":"e36051345f6d27a56e5f39ea70d2f789b8574046","_id":"brotli@1.3.3","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg==","shasum":"7365d8cc00f12cf765d2b2c898716bcf4b604d48","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-1.3.3.tgz","fileCount":19,"unpackedSize":1503586,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh4al/LBJxyZTKC5ZAlvdZuNAnmhryVs+1aX4F0ZRXNAIgZlH355V9f8Aa5JylHSzTJkwpkZsVr2dRtgoEaci8qKw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioD1cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7qxAAjG+mMkjI+JYGZGKJ63BXhNia69ciFW1O/6n8gejtyKkvkM1k\r\n8ny3+hMeJmnF2dLinwkE5ZoSJcjx2Sa3KjMoEvhIBzukcfD2947ihWNENry9\r\nrqdxOXezySAtxtAkbS4yw/5Dmb/d+9AoenzMsgABVLVNJHX4TaM9voQB3f0X\r\nrK7AIATg4iS2vQwT1n86yjP/tobQx8BaofabrUk/8dWs6g1oaI1dcwDZTpQy\r\nQI4L7SO6sxyxh13UhFHSrr+MPV2PMGWJg5kCd2OKmCF1U9omtOXlj5Evh9Hk\r\nYcLT/5fh7mN3W1nN6VvN5tNV1Y0lnSVXCO3crxVeTPgGZSVNsw9yJeMOfqMn\r\nVH3oWqNNDbEw5trVupxct81eJKwpi+b2jjOWivHyIAGOqwvCKEsq0caDxPYR\r\nFQPGj5URNbsKdN/CiQ28CSjLzK8hzi+zFsQCOWI8szPQhyfw4nC672gYi2fL\r\n3RC2VyMOcbSPOBaqrcdEmGwGaJKxXw7+W0/bGmpOYg8apoHoBtc1R/W+M3VT\r\nSOdbIngXkfTi6F2horVq2pRwx7Ei61NEOy4kC6dumUeO6ZlYMsmIKVhWgV8x\r\nwYqfZn3mWdE29g2lrg9SwklEKGTU2ZgLnu9OwlgrGMFGO6EkSR2hlRzqVLat\r\naBAK2IR+yFE0MpoZu1EcUSFHst15p4t7yoI=\r\n=l9Ef\r\n-----END PGP SIGNATURE-----\r\n","size":416657},"_npmUser":{"name":"anonymous","email":"devongovett@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/brotli_1.3.3_1654668636143_0.8117438266432813"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-08T06:11:38.298Z","contributors":[]},"2.1.0":{"_id":"brotli@2.1.0","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"dist":{"shasum":"e4a3dc8ca43f14bf569b954ddf8d7f9a5f94cde0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-2.1.0.tgz","fileCount":21,"integrity":"sha512-4KAtOr4Z3jaIQlXy9AeuaVz1vPWTyZ6eiQYu4SsSz6VcUsV6Epz6kA3Vf7eTGTaspaqlnQLBqvkozKP5WyQMZQ==","signatures":[{"sig":"MEUCIA39ON+GDNifqJ2hVRmYMfKiqLgcEiSXWlKVj2rdzzc3AiEAm9hlrxaokc0H2zUZgmw12LZlM2ZTnNdViU95+MZKaYQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICzkHloPHYklObogi1yDDdMGdp+mPhipMm+xHqBhKF0TAiEA5CMraW9JRoNQ1ylYoT+I8fl2cMenaQ6ClC5MTsCVFmc="}],"unpackedSize":2203889,"size":580966},"main":"index.js","name":"brotli","type":"module","types":"index.d.ts","author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./compress":{"types":"./compress.d.ts","default":"./compress.js"},"./decompress":{"types":"./decompress.d.ts","default":"./decompress.js"},"./compress.js":{"types":"./compress.d.ts","default":"./compress.js"},"./decompress.js":{"types":"./decompress.d.ts","default":"./decompress.js"}},"gitHead":"4011e59a5c35bb602f3e97f114727aa662f795f7","imports":{"#dictionary-data":{"node":"./dec/dictionary-data.js","default":"./dec/dictionary-browser.js"}},"license":"MIT","scripts":{"test":"node --experimental-vm-modules node_modules/mocha/bin/mocha.js","prepublish":"make"},"version":"2.1.0","_npmUser":{"name":"anonymous","email":"camara_luiz@yahoo.com.br"},"homepage":"https://github.com/devongovett/brotli.js","keywords":["compress","decompress","encode","decode"],"repository":{"url":"git+https://github.com/devongovett/brotli.js.git","type":"git"},"_npmVersion":"11.6.2","description":"A port of the Brotli compression algorithm as used in WOFF2","directories":{},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"},{"name":"anonymous","email":"camara_luiz@yahoo.com.br"}],"_nodeVersion":"24.12.0","dependencies":{"base64-js":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^12.0.3","esbuild":"^0.28.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/brotli_2.1.0_1791656096854_0.20800778420395982"},"_cnpmcore_publish_time":"2026-10-10T18:14:56.953Z","publish_time":1791656096953,"_source_registry_name":"default","contributors":[]},"2.0.0":{"_id":"brotli@2.0.0","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"dist":{"shasum":"c4fbe375803ce00b4a0f65b23237655446952165","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-2.0.0.tgz","fileCount":21,"integrity":"sha512-NM3CrAmJoYAL21QZ1IBkkd9UTiI8+nEuomWHRQRzdWW8vM+gfSFY4zLS0nn7QHVePwyCcKGJMCYpDbsbwYUIyw==","signatures":[{"sig":"MEUCIDwkCZ0kZpuZvI+v44JXBYqp8upzOSR+dDtdQ8Dzb1AfAiEAxjCULhuvdP/h5DqNr5S9K71xv4iHHugwceJZxh9AFGg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC1uVuFES3jPUxPDFgyNt0aEqsRjqUxtL+C4AY107bh6QIhAN/l5rNuEzyNTZRhSWAaT8W7XU1ZhvhJkX0W5Cb2HGOk"}],"unpackedSize":2203858,"size":580841},"main":"index.js","name":"brotli","type":"module","types":"index.d.ts","author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"browser":{"./dec/dictionary-data.js":"./dec/dictionary-browser.js"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./compress":{"types":"./compress.d.ts","default":"./compress.js"},"./decompress":{"types":"./decompress.d.ts","default":"./decompress.js"},"./compress.js":{"types":"./compress.d.ts","default":"./compress.js"},"./decompress.js":{"types":"./decompress.d.ts","default":"./decompress.js"}},"gitHead":"05cfbc71f180d2ff9b7f76f970d46201eb08180b","license":"MIT","scripts":{"test":"node --experimental-vm-modules node_modules/mocha/bin/mocha.js","prepublish":"make"},"version":"2.0.0","_npmUser":{"name":"anonymous","email":"camara_luiz@yahoo.com.br"},"homepage":"https://github.com/devongovett/brotli.js","keywords":["compress","decompress","encode","decode"],"repository":{"url":"git+https://github.com/devongovett/brotli.js.git","type":"git"},"_npmVersion":"11.6.2","description":"A port of the Brotli compression algorithm as used in WOFF2","directories":{},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"},{"name":"anonymous","email":"camara_luiz@yahoo.com.br"}],"_nodeVersion":"24.12.0","dependencies":{"base64-js":"^1.5.1"},"_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"mocha":"^12.0.3","esbuild":"^0.28.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/brotli_2.0.0_1791726024929_0.9762772130528179"},"_cnpmcore_publish_time":"2026-10-11T13:40:25.048Z","publish_time":1791726025048,"_source_registry_name":"default","contributors":[]},"2.2.0":{"_id":"brotli@2.2.0","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"dist":{"shasum":"dbfd9fe6e81bd48532a090c186e6d28411499c2d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/brotli/-/brotli-2.2.0.tgz","fileCount":21,"integrity":"sha512-rgAdFn9g2B2bY1zSaojrjamA6aa7zrt8iFfGr4rziJv6aCg2CT5beDXo15vXv+tM3qRI6kiOPfZOUtfaLCK/8w==","signatures":[{"sig":"MEQCICBAphtdTII9+0id6kr7nK3OxxFqvBJCQj2brJ/Cx3Z6AiAll7E0GtMH7p2s4kQl/iKcHlhdh1NCAkp4w5FYeS9qVg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICORuLMe/pgFFWK9DkYhllOjjC+ntx7lToYl6Aj1ZR3nAiAf6erA//vl0kA4QM2+/Bn6HkG1c9GaLWrmFyEgffwBfg=="}],"unpackedSize":2204056,"size":581039},"main":"index.js","name":"brotli","type":"module","types":"index.d.ts","author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./compress":{"types":"./compress.d.ts","default":"./compress.js"},"./decompress":{"types":"./decompress.d.ts","default":"./decompress.js"},"./compress.js":{"types":"./compress.d.ts","default":"./compress.js"},"./decompress.js":{"types":"./decompress.d.ts","default":"./decompress.js"}},"gitHead":"b382e31f2aec134a22003303c1e8aaa8bfe9ea43","imports":{"#dictionary-data":{"node":"./dec/dictionary-data.js","default":"./dec/dictionary-browser.js"}},"license":"MIT","scripts":{"test":"node --experimental-vm-modules node_modules/mocha/bin/mocha.js","prepublish":"make"},"version":"2.2.0","_npmUser":{"name":"anonymous","email":"camara_luiz@yahoo.com.br"},"homepage":"https://github.com/devongovett/brotli.js","keywords":["compress","decompress","encode","decode"],"repository":{"url":"git+https://github.com/devongovett/brotli.js.git","type":"git"},"_npmVersion":"11.6.2","description":"A port of the Brotli compression algorithm as used in WOFF2","directories":{},"maintainers":[{"name":"anonymous","email":"devongovett@gmail.com"},{"name":"anonymous","email":"camara_luiz@yahoo.com.br"}],"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^12.0.3","esbuild":"^0.28.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/brotli_2.2.0_1795918940886_0.87688152630017"},"_cnpmcore_publish_time":"2026-11-29T02:22:21.008Z","publish_time":1795918941008,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.2.0"},"name":"brotli","time":{"modified":"2026-11-29T02:22:42.086Z","created":"2022-01-26T14:55:13.018Z","1.3.2":"2017-05-02T07:29:49.109Z","1.3.1":"2016-09-14T03:34:39.357Z","1.3.0":"2016-09-11T07:37:13.957Z","1.2.0":"2016-03-27T23:20:48.276Z","1.1.0":"2015-04-02T20:14:27.002Z","1.0.2":"2015-02-07T21:05:29.134Z","1.0.1":"2015-02-03T16:58:56.932Z","1.0.0":"2014-09-29T04:12:37.886Z","1.3.3":"2022-06-08T06:10:36.405Z","2.1.0":"2026-10-10T18:14:56.953Z","2.0.0":"2026-10-11T13:40:25.048Z","2.2.0":"2026-11-29T02:22:21.008Z"},"readme":"# Brotli.js\n\nBrotli.js is port of the [Brotli](http://tools.ietf.org/html/draft-alakuijala-brotli-01) compression algorithm (as used in the [WOFF2](http://www.w3.org/TR/WOFF2/) font format) to JavaScript. The decompressor is hand ported, and the compressor is ported\nwith Emscripten.  The original C++ source code can be found [here](http://github.com/google/brotli).\n\n## Installation and usage\n\nInstall using npm.\n\n    npm install brotli\n\nBrotli.js is an ESM-only package. Import its named functions in Node.js or a\nbrowser bundler:\n\n```javascript\nimport { compress, decompress } from 'brotli';\n```\n\nTypeScript declarations are included for all public entry points. The\n`CompressOptions` type is available from `brotli` and `brotli/compress`.\n\nThe public entry points have no default exports. Modern Node.js can also load\nthese ES modules with `require()` without a flag: Node 20.19+, 22.12+, and later\nreleases support this [Node interoperability feature](https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require).\n\n```javascript\nconst { compress, decompress } = require('brotli');\n\ncompress(Buffer.from('Hello, Brotli!')).then(compressed => {\n  const original = decompress(compressed);\n  console.log(Buffer.from(original).toString());\n}).catch(console.error);\n```\n\nOn older Node.js versions, CommonJS applications can use dynamic `import()`.\n\nYou can also import either function on its own, which is useful for browser\nbuilds. The standalone modules export their named function; both subpaths\nalso accept a `.js` extension.\n\n```javascript\nimport { decompress } from 'brotli/decompress';\nimport { compress } from 'brotli/compress';\n```\n\nWith modern Node.js `require()`, destructure the standalone functions:\n\n```javascript\nconst { compress } = require('brotli/compress');\nconst { decompress } = require('brotli/decompress');\n```\n\n`compress()` returns a Promise and initializes the encoder lazily on its first\ncall. Concurrent calls share the same initialization Promise, and a failed\ninitialization is not retried. `decompress()` remains synchronous. No startup\ntimer or initialization call is needed, and the package does not use top-level\nawait. Browser bundlers must support ESM and conditional `package.json` imports;\nthe browser tests target ESM/ES2022. The internal `#dictionary-data` import uses\nthe inline dictionary under the `node` condition and the compressed dictionary\nunder `default`, including browser builds.\nImporting only `brotli/decompress` does not load the encoder.\n\n## Building from source\n\nBuilding this repository requires Git, Make, Python 3, Node.js, and the\n[Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html).\nThe `emcc` compiler is provided by Emscripten, not by npm.\n\nFrom the repository root, initialize the Brotli sources and install a local SDK:\n\n```sh\ngit submodule update --init --recursive\ngit clone https://github.com/emscripten-core/emsdk.git .emsdk\n./.emsdk/emsdk install 6.0.12\n./.emsdk/emsdk activate 6.0.12\nnpm ci\nnpm test\n```\n\n`npm ci` runs `make` through the `prepublish` script and generates\n`build/encode.js` as an ES module. The Makefile automatically uses the compiler\nin `.emsdk`.\nThe local SDK is excluded from Git and npm packages.\n\nIf Emscripten is already installed elsewhere, activate its environment with\n`source /path/to/emsdk/emsdk_env.sh` before installing dependencies. You can\nalso select a compiler explicitly with `make EMCC=/path/to/emcc`.\nRun `make` to rebuild the encoder and `make clean` to remove generated files.\n\n## API\n\n### decompress(buffer, [outSize])\n\nDecompresses the given buffer to produce the original input to the compressor.\nThe `outSize` parameter is optional, and will be computed by the decompressor\nif not provided. Inside a WOFF2 file, this can be computed from the WOFF2 directory.\n\n```javascript\nimport { readFileSync } from 'node:fs';\nimport { decompress } from 'brotli';\n\n// decode a buffer where the output size is known\ndecompress(compressedData, uncompressedLength);\n\n// decode a buffer where the output size is not known\ndecompress(readFileSync('compressed.bin'));\n```\n\n### compress(buffer, options)\n\nCompresses the given buffer and returns `Promise<Uint8Array | null>`. Pass\noptional parameters as the second argument. The Promise resolves to `null`\nwhen the encoder reports failure; initialization and runtime errors reject it.\n\nEncoding runs on the calling thread after initialization; this API does not\nuse workers or move CPU work off that thread. Input and options are not copied\nbefore initialization: keep the input buffer, options, and dictionary unchanged\nuntil the Promise settles.\n\n```javascript\nimport { readFileSync } from 'node:fs';\nimport { compress } from 'brotli';\n\n// encode a buffer of binary data\nconst compressed = await compress(readFileSync('myfile.bin'));\n\n// encode some data with options (default options shown)\nconst compressedWithOptions = await compress(readFileSync('myfile.bin'), {\n  mode: 0, // 0 = generic, 1 = text, 2 = font (WOFF2)\n  quality: 11, // 0 - 11\n  lgwin: 22, // window size\n  dictionary: ''\n});\n```\n\n## License\n\nMIT","users":{}}