{"_id":"brotli","_rev":"2915255","name":"brotli","description":"A port of the Brotli compression algorithm as used in WOFF2","dist-tags":{"latest":"1.3.3"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"time":{"modified":"2023-02-01T08:49:50.000Z","created":"2014-09-29T04:12:37.886Z","1.3.3":"2022-06-08T06:10:36.405Z","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"},"users":{"ahme-t":true,"goliatone":true,"markthethomas":true,"miloc":true,"zuojiang":true},"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/devongovett/brotli.js.git"},"versions":{"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":{"shasum":"7365d8cc00f12cf765d2b2c898716bcf4b604d48","size":416657,"noattachment":false,"key":"/brotli/-/brotli-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.3.3.tgz"},"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"directories":{},"maintainers":[{"name":"devongovett","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","publish_time":1654668636405,"_cnpm_publish_time":1654668636405},"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":"devongovett","email":"devongovett@gmail.com"},"dist":{"shasum":"525a9cad4fcba96475d7d388f6aecb13eed52f46","size":425833,"noattachment":false,"key":"/brotli/-/brotli-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.3.2.tgz"},"maintainers":[{"name":"devongovett","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},"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":"devongovett","email":"devongovett@gmail.com"},"dist":{"shasum":"352a6f3f6973c5a74fd4be04aba40b337b3b6a7e","size":425839,"noattachment":false,"key":"/brotli/-/brotli-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.3.1.tgz"},"maintainers":[{"name":"devongovett","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},"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":"devongovett","email":"devongovett@gmail.com"},"dist":{"shasum":"33d5b4e2aab9918efdcd56462f63eadadac0550b","size":425836,"noattachment":false,"key":"/brotli/-/brotli-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.3.0.tgz"},"maintainers":[{"name":"devongovett","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},"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":"devongovett","email":"devongovett@gmail.com"},"dist":{"shasum":"b716947531fa780067886cda45fd770e8587edf0","size":516504,"noattachment":false,"key":"/brotli/-/brotli-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.2.0.tgz"},"maintainers":[{"name":"devongovett","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},"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":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"dist":{"shasum":"475e2f465180b4fc59999d89ddfc3dc8ba07a76d","size":825350,"noattachment":false,"key":"/brotli/-/brotli-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.1.0.tgz"},"directories":{},"publish_time":1428005667002,"_cnpm_publish_time":1428005667002,"_hasShrinkwrap":false},"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":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"dist":{"shasum":"548fcb29d1145e01c016931e07dc8f1505dcca86","size":464637,"noattachment":false,"key":"/brotli/-/brotli-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.0.2.tgz"},"directories":{},"publish_time":1423343129134,"_cnpm_publish_time":1423343129134,"_hasShrinkwrap":false},"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":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"dist":{"shasum":"ee068c0efbdcba1014915ddc8e5f3ce8756b9d97","size":463646,"noattachment":false,"key":"/brotli/-/brotli-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.0.1.tgz"},"directories":{},"publish_time":1422982736932,"_cnpm_publish_time":1422982736932,"deprecated":"Bad compile","_hasShrinkwrap":false},"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":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"dist":{"shasum":"f062e899dea65e8d95d716ea14b1c92506866b58","size":491251,"noattachment":false,"key":"/brotli/-/brotli-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/brotli/download/brotli-1.0.0.tgz"},"directories":{},"publish_time":1411963957886,"_cnpm_publish_time":1411963957886,"_hasShrinkwrap":false}},"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\nIf you want to use brotli in the browser, you should use [Browserify](http://browserify.org/) to build it.\n\nIn node, or in browserify, you can load brotli in the standard way:\n\n```javascript\nvar brotli = require('brotli');\n```\n\nYou can also require just the `decompress` function or just the `compress` function, which is useful for browserify builds.\nFor example, here's how you'd require just the `decompress` function.\n\n```javascript\nvar decompress = require('brotli/decompress');\n```\n\n## API\n\n### brotli.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\n// decode a buffer where the output size is known\nbrotli.decompress(compressedData, uncompressedLength);\n\n// decode a buffer where the output size is not known\nbrotli.decompress(fs.readFileSync('compressed.bin'));\n```\n\n### brotli.compress(buffer, isText = false)\n\nCompresses the given buffer. Pass optional parameters as the second argument.\n\n```javascript\n// encode a buffer of binary data\nbrotli.compress(fs.readFileSync('myfile.bin'));\n\n// encode some data with options (default options shown)\nbrotli.compress(fs.readFileSync('myfile.bin'), {\n  mode: 0, // 0 = generic, 1 = text, 2 = font (WOFF2)\n  quality: 11, // 0 - 11\n  lgwin: 22 // window size\n});\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/devongovett/brotli.js","bugs":{"url":"https://github.com/devongovett/brotli.js/issues"},"license":"MIT"}