{"_id":"wasm-brotli","_rev":"6-0f4f821076b9a6338cbbc87a006dccd5","name":"wasm-brotli","description":"🗜 WebAssembly compiled Brotli library","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"wasm-brotli","version":"1.0.0","description":"🗜 WebAssembly compiled Brotli library","repository":{"type":"git","url":"git+https://github.com/dfrankland/wasm-brotli.git"},"keywords":["wasm","brotli","rust","compression"],"author":{"name":"Dylan Frankland"},"license":"MIT","bugs":{"url":"https://github.com/dfrankland/wasm-brotli/issues"},"homepage":"https://github.com/dfrankland/wasm-brotli#readme","main":"./dist/index.js","module":"./dist/index.mjs","browser":"./dist/browser.js","files":["dist/index.js","dist/index.mjs","dist/browser.js"],"scripts":{"build":"rollup -c","pretest":"npm run build","test":"jest","lint":"eslint -c ./package.json ./*.js ./src/**/*.js ./benchmark/*.js ./benchmark/src/**/*.js"},"devDependencies":{"@babel/core":"^7.0.0-beta.35","@babel/plugin-transform-runtime":"^7.0.0-beta.35","@babel/preset-env":"^7.0.0-beta.35","@babel/preset-stage-0":"^7.0.0-beta.35","babel-eslint":"^8.0.3","babel-jest":"^21.2.0","babel-preset-env":"^1.6.1","babel-preset-stage-0":"^6.24.1","eslint":"^4.13.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^21.4.2","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","jest":"^21.3.0-beta.15","rollup":"^0.52.1","rollup-plugin-babel":"^4.0.0-beta.0","rollup-plugin-commonjs":"^8.2.3","rollup-plugin-docker":"^0.1.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-wasm-module":"0.0.3"},"dependencies":{"@babel/runtime":"^7.0.0-beta.35","kaffeerost":"0.0.1"},"babel":{"only":["./src/**/*.js"],"presets":[["env",{"targets":{"node":"current"}}],"stage-0"]},"eslintConfig":{"parser":"babel-eslint","extends":"airbnb","env":{"browser":true,"jest/globals":true},"rules":{"import/no-extraneous-dependencies":["error",{"devDependencies":["**/rollup.config.js","**/__tests__/**/*"]}]},"plugins":["jest"]},"gitHead":"0718c7fc2a44649ab8ffeab8546359b4a009c7be","_id":"wasm-brotli@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"dfrankland","email":"dylan@frankland.io"},"dist":{"integrity":"sha512-rp+UAWw0bUtHrLWwIeRQFbYIMkSoJqOigRV1b00gox6jQ1LpSBkYqlvNSSBekk7n6rKA2uWem7WPGGh6ZiUDKg==","shasum":"2f0a32c1a5acbafb3d21bc25ec696bf12288ac09","tarball":"https://registry.npmjs.org/wasm-brotli/-/wasm-brotli-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK9caE/mxAAjzuCrrSn1h7S/kDyVvurqJXzupxYcWaUQIgMqcaLgPqwG+VuPzYpGcPBtaSSIU5heO6utHcrOjMHnU="}]},"maintainers":[{"name":"dfrankland","email":"dylan@frankland.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm-brotli-1.0.0.tgz_1513929757382_0.8101682006381452"},"directories":{}},"1.0.1":{"name":"wasm-brotli","version":"1.0.1","description":"🗜 WebAssembly compiled Brotli library","repository":{"type":"git","url":"git+https://github.com/dfrankland/wasm-brotli.git"},"keywords":["wasm","brotli","rust","compression"],"author":{"name":"Dylan Frankland"},"license":"MIT","bugs":{"url":"https://github.com/dfrankland/wasm-brotli/issues"},"homepage":"https://github.com/dfrankland/wasm-brotli#readme","main":"./dist/index.js","module":"./dist/index.mjs","browser":"./dist/browser.js","files":["dist/index.js","dist/index.mjs","dist/browser.js"],"scripts":{"build":"rollup -c","pretest":"npm run build","test":"jest","lint":"eslint -c ./package.json ./*.js ./src/**/*.js ./benchmark/*.js ./benchmark/src/**/*.js"},"devDependencies":{"@babel/core":"^7.0.0-beta.35","@babel/plugin-transform-runtime":"^7.0.0-beta.35","@babel/preset-env":"^7.0.0-beta.35","@babel/preset-stage-0":"^7.0.0-beta.35","babel-eslint":"^8.0.3","babel-jest":"^21.2.0","babel-preset-env":"^1.6.1","babel-preset-stage-0":"^6.24.1","eslint":"^4.13.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^21.4.2","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","jest":"^21.3.0-beta.15","rollup":"^0.52.1","rollup-plugin-babel":"^4.0.0-beta.0","rollup-plugin-commonjs":"^8.2.3","rollup-plugin-docker":"^0.1.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-wasm-module":"0.0.3"},"dependencies":{"@babel/runtime":"^7.0.0-beta.35","kaffeerost":"0.0.1"},"babel":{"only":["./src/**/*.js"],"presets":[["env",{"targets":{"node":"current"}}],"stage-0"]},"eslintConfig":{"parser":"babel-eslint","extends":"airbnb","env":{"browser":true,"jest/globals":true},"rules":{"import/no-extraneous-dependencies":["error",{"devDependencies":["**/rollup.config.js","**/__tests__/**/*"]}]},"plugins":["jest"]},"gitHead":"c418fd9d3c009d592919fd815ac54084f6e55d04","_id":"wasm-brotli@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"dfrankland","email":"dylan@frankland.io"},"dist":{"integrity":"sha512-mO9BGrOYBlem/1TO4hvaaRz+qVqc+26zypAcShuIIoAOTuJWCEXWExdhLDS4p/DjTGSn+fJWxtu9IETEFWhC9Q==","shasum":"483368464cfa2f2f6c51e07eee32fba597340e05","tarball":"https://registry.npmjs.org/wasm-brotli/-/wasm-brotli-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWsFhJQ8n+IUgihRCpSZFPHWTk4OuHLC3SFY5UdcJngwIgC4bjbwzKTn26D6AoXZQqd8K1HoNXMcqizpURujMAfjA="}]},"maintainers":[{"name":"dfrankland","email":"dylan@frankland.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm-brotli-1.0.1.tgz_1513973656909_0.6728308349847794"},"directories":{}},"1.0.2":{"name":"wasm-brotli","version":"1.0.2","description":"🗜 WebAssembly compiled Brotli library","repository":{"type":"git","url":"git+https://github.com/dfrankland/wasm-brotli.git"},"keywords":["wasm","brotli","rust","compression"],"author":{"name":"Dylan Frankland"},"license":"MIT","bugs":{"url":"https://github.com/dfrankland/wasm-brotli/issues"},"homepage":"https://github.com/dfrankland/wasm-brotli#readme","main":"./dist/index.js","module":"./dist/index.mjs","browser":"./dist/browser.js","files":["dist/index.js","dist/index.mjs","dist/browser.js"],"scripts":{"build":"rollup -c","test":"jest","lint":"eslint -c ./package.json ./*.js ./src/**/*.js ./benchmark/*.js ./benchmark/src/**/*.js"},"devDependencies":{"@babel/core":"^7.0.0-beta.35","@babel/plugin-transform-runtime":"^7.0.0-beta.35","@babel/preset-env":"^7.0.0-beta.35","@babel/preset-stage-0":"^7.0.0-beta.35","babel-eslint":"^8.0.3","babel-jest":"^21.2.0","babel-preset-env":"^1.6.1","babel-preset-stage-0":"^6.24.1","eslint":"^4.13.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^21.4.2","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","jest":"^21.3.0-beta.15","rollup":"^0.52.1","rollup-plugin-babel":"^4.0.0-beta.0","rollup-plugin-commonjs":"^8.2.3","rollup-plugin-docker":"^0.1.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-wasm-module":"0.0.3"},"dependencies":{"@babel/runtime":"^7.0.0-beta.35"},"babel":{"only":["./src/**/*.js"],"presets":[["env",{"targets":{"node":"current"}}],"stage-0"]},"eslintConfig":{"parser":"babel-eslint","extends":"airbnb","env":{"browser":true,"jest/globals":true},"rules":{"import/no-extraneous-dependencies":["error",{"devDependencies":["**/rollup.config.js","**/__tests__/**/*"]}]},"plugins":["jest"]},"gitHead":"975c5786019b24a5258468b389331386a752d989","_id":"wasm-brotli@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"dfrankland","email":"dylan@frankland.io"},"dist":{"integrity":"sha512-kBGJb1eRfGaT7CufdENZKGXpgWNVOM0mrKqUkLpuq1EEy5xrvS5PU3ZT7wKxWApKQsSr3OkdaBIB1gRJhXADJA==","shasum":"94be04aec6a7e944249d662a69bff190d0b202f5","tarball":"https://registry.npmjs.org/wasm-brotli/-/wasm-brotli-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBPa1a1YOGRsWgtySG+r2144Jx8OkyuRG+RF884UnVKjAiEA0SPizjn5JyxTW7PYo49B1FIRNnbV8X61lHCimIFZhFY="}]},"maintainers":[{"name":"dfrankland","email":"dylan@frankland.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm-brotli-1.0.2.tgz_1514837629635_0.3566054692491889"},"directories":{}},"2.0.0":{"name":"wasm-brotli","description":"🗜 WebAssembly compiled Brotli library","version":"2.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/dfrankland/wasm-brotli.git#readme"},"main":"wasm_brotli_nodejs.js","types":"wasm_brotli_nodejs.d.ts","browser":"wasm_brotli_browser.js","bugs":{"url":"https://github.com/dfrankland/wasm-brotli/issues"},"homepage":"https://github.com/dfrankland/wasm-brotli/tree/readme#readme","_id":"wasm-brotli@2.0.0","_nodeVersion":"12.9.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-XIW1HOr46lmeAvLUVOiCX/yvXGC43HmJXun3RZA60fJWcGgVwebYDMKX1qZZBwufukTaBLaWgh/qHDnSLHVJDQ==","shasum":"54e7e54a352bc33b28cde6be800073fc2f05c81f","tarball":"https://registry.npmjs.org/wasm-brotli/-/wasm-brotli-2.0.0.tgz","fileCount":8,"unpackedSize":1653155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdx6ZKCRA9TVsSAnZWagAABfMP/ipgZUtOubcm673HRzNn\nKyNrjQifRMhbkQJ4l/DLM7wEdnb5I3QU5X/IEtugcXVgEdEQ6dTW65jxQ/j0\nYH32PQtQWl1sMFUWNz/hvd/VMGeArd3ijkh7waqVBEIzgcSQVI7kaTbWdcRM\nsFGBIiMEWOHhKco6iXSveHkvXEomRCP0x82vFS/+BYjYo/A7smn3266Zer5Z\nJTsZETOhzWgsN48iEmz5276uDP9PWc7lApInA/F5ooc1ay34wmLX9CijLYdd\nH3OphfsUHtFxGlryp4Ff3DmrfMESmKHikm/n8g5iLC0BzI9FYvNoccxdfknp\nZTcLse8gCBlAdB+BdDmYNZjY6CnAx/SAxz/bIRoTt7UYignp1hSHfMNcY0CE\nFh8cX8aiEleKlifx3IsLzVlAB6+Pkxnh+Nf011UhVhVGK8sduxQsop7//TJg\nYLkbmJ2Dx+eLdiJUP3W/sW7e6APW95l+fo0HUd5fkGU8Kh/gmLLT2iOhENe7\nJUAoLewUl3ENyq/eUMBa69k8ZJbF9ud+zb8RO04n3L8DOIu1KhKyAYNQiviO\njedqGNrf4CjHxsjhfYfDjFj2GN2DR7P8f8ugowYxCKRgIEeHW5BO8W9BMHcO\nD+reXiPO3W7iS1ESXqN9ZP6oBTCXsw4yDfk+AO272cOTaefGUMi23+FJiAts\nqcRT\r\n=ezFt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCYzt4bNnwFwbOeTbn/DLHL5cO3WBJ4SoaCFtjoamRSQIhAPCkWvLFezOxW3yE/8VA3vEmTEt/OmX7Ue4Yz2SJjxdE"}]},"maintainers":[{"name":"dfrankland","email":"dylan@frankland.io"}],"_npmUser":{"name":"dfrankland","email":"dylan@frankland.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm-brotli_2.0.0_1573365321604_0.5903324056883918"},"_hasShrinkwrap":false},"2.0.1":{"name":"wasm-brotli","description":"🗜 WebAssembly compiled Brotli library","version":"2.0.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/dfrankland/wasm-brotli.git#readme"},"main":"wasm_brotli_nodejs.js","types":"wasm_brotli_nodejs.d.ts","browser":"wasm_brotli_browser.js","bugs":{"url":"https://github.com/dfrankland/wasm-brotli/issues"},"homepage":"https://github.com/dfrankland/wasm-brotli/tree/readme#readme","_id":"wasm-brotli@2.0.1","_nodeVersion":"12.9.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-BiGgMWQEN3RJDsao77yAOfotH88Oq+3TlNqU1IiaxyQccVziPfVqG6XqIoK/IngCz3SwCXkT3H1MFxk3/gMjIA==","shasum":"dbb1729d0b091aa2eeae17c75198ec4e7045fed7","tarball":"https://registry.npmjs.org/wasm-brotli/-/wasm-brotli-2.0.1.tgz","fileCount":5,"unpackedSize":10184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdx6xECRA9TVsSAnZWagAA76cQAILENCPNL232lhukgF6y\nTkHlMnmDo/O5G38UXJYzhn1g7r8Q64gS7l8ZY5myT+hLDzbbjv3Dd/AjnxAH\nJ+mOFYwoOlg4j5gb+PCC4EZNXd5c8ouZfFi376Lo52nsOHyPi5R9EDB/MWwd\nbWbIJ9u3Nm9pN82PD4iK0gQQNmYDvtCpgiqx9Bbd52dvHPH8zhxAGkiLTisx\nPwonxh/Yn8v3PIf2/ARfnHXri/5qNRh/pSGYwp+EmcbN8qdoqFsEEexk/wFL\nRZrLq9taw+ok/G88OSxu/XTPX5ynOz0NQc3xo8jxzk4m5uGCtVr06JnFb+oH\n9v7PTwR/JQhY7kxdzHu/DmYgf4IBzZgbfOOnOFmSffqBAH/yuSvmCkNKNhST\nuaGX3ouKF7CgUWQL9V7tKcMun2zDJAW7oxsAHvECw6dnL/NoDtIQIzkEHRro\nM8cMS4RHxEV3vOA+4SvqQAwqzdKdcGQkSgXj7cOywJQ+0IggGa98HSkC4a6E\nI8ZIeqzO08f+0tll94o8I3zX25KEnCf80ynbpRE69CvYfIKxjmbIH0wbKyuH\nQ7TXFAwHEPlzZh92HQ3pLKTO+HyHRhsJYoPqH+1dp9vp3zvcAuIJdbXBF1S0\n/CXkNUP5eBJTB4+v5djQ9TTHS6o8/9Sc1MyAuUYQPN2Q5Ws/wBn9tJViCWqc\nOJjF\r\n=4Ekn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKaHRp8hmppvM9QTjkBHRtleTSzXRTbsK49RZCXqjz0AiEA85OMCHD7bUAKWt3GkWvEM/FWfIjHbMQ8sfcVsZ/wdZg="}]},"maintainers":[{"name":"dfrankland","email":"dylan@frankland.io"}],"_npmUser":{"name":"dfrankland","email":"dylan@frankland.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm-brotli_2.0.1_1573366851830_0.6509879773360108"},"_hasShrinkwrap":false},"2.0.2":{"name":"wasm-brotli","description":"🗜 WebAssembly compiled Brotli library","version":"2.0.2","license":"MIT","repository":{"type":"git","url":"git+https://github.com/dfrankland/wasm-brotli.git#readme"},"main":"wasm_brotli_nodejs.js","types":"wasm_brotli_nodejs.d.ts","browser":"wasm_brotli_browser.js","bugs":{"url":"https://github.com/dfrankland/wasm-brotli/issues"},"homepage":"https://github.com/dfrankland/wasm-brotli/tree/readme#readme","_id":"wasm-brotli@2.0.2","_nodeVersion":"12.9.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-DgjRlpZz9z5br4TjQHSlDHRF9NIuGXHUj3AqO08koDCXz7EYzmPDb7T/6oar5UKLYgPp9Yxc2ImGpx4BMFwbNQ==","shasum":"f5317afb0d3e2e5fe90a66b6d61e42939284f1c7","tarball":"https://registry.npmjs.org/wasm-brotli/-/wasm-brotli-2.0.2.tgz","fileCount":12,"unpackedSize":3308413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyJqsCRA9TVsSAnZWagAAtNwQAJjU0Zn3dX+WUZV8jYtm\ngCFXBat0HIzxZRIGTaLZ2QOAqqiEBO2Qe6+YVAtYl/f5PWfsm06UrvEZj0Hx\n4PwowQU0Jz1gBAKbcjS2lG0S3Kpyu3C7765HrWkqIEIcDlDSxMvcsXC/B5n7\n5UqwrAXevE5mrSIwJRRo9XCGTF4jn1wu3Y3cZ6hf8SIHnNtfPp7b41q6kTHE\nSEWR0fyqnQHbFuRu/YMmHAY78Z8r8GLcJMWALXKppyxPbrPA9f8pABDg1rED\nkM1yoSxS/bRgFsj013CXCg5juilBZQ0Mct4U57ywsTb6YGwxYeV2XePWEcEA\n68pkqYEpdUgSZisULOBW4DKaTltpXN3qsuuTjqwf09/5wfTWkyThTa19HSW1\nzFN8BtogS5rqFEavk+ASu6MBu3JJfUgCU6AVBhcHFBHpPs3FyL62nXjlq36s\nwsBy1Fb/DEr1Sjhb9F8ZESXbFQ9DVpCpZTvWbIvZZJLyykuNbLlLI33fbBxY\nuVyU99rd+2Ze7NzshTg+5aKmhYTIyYGFWPZFFQxk8BMQ2BiC1my4PQ3nrmlU\n5i42rhG64sniqnzT3gCM9J9JCeARF51i2V6dXyGq5OOMPiTZNPwU15Sd9GYz\nzqeGTOuTc3YMRVKTdil/jZIrIUT4ve/ZE07e0m8PSdOxZvcj5Firoud5j36c\nOHcO\r\n=A2t4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvo39Id0b9hVHqNh0RrTLgxGtut8+5sdYsML8kC0oCWwIhAPy1cQqlRIz1ykpgA8c4IWiupEwTiKs1LPmGx5KzY8zm"}]},"maintainers":[{"name":"dfrankland","email":"dylan@frankland.io"}],"_npmUser":{"name":"dfrankland","email":"dylan@frankland.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm-brotli_2.0.2_1573427883749_0.43225083963578514"},"_hasShrinkwrap":false}},"readme":"# wasm-brotli\n\nWebAssembly compiled Brotli library.\n\n## Installation\n\n```bash\nnpm install -S wasm-brotli\n```\n\n> The awesome thing about `wasm-brotli` is that it does not need to compile or\n> download any prebuilt binaries!\n\n## Usage\n\nBecause WebAssembly is supported on both Node.js and several browsers,\n`wasm-brotli` is super easy to use.\n\n### Node.js\n\nAn example of compressing something and saving it to a file via Node.js.\n\n```js\nimport { compress } from 'wasm-brotli';\nimport { writeFile } from 'fs';\nimport { promisify } from 'util';\n\nconst writeFileAsync = promisify(writeFile);\n\nconst content = Buffer.from('Hello, world!', 'utf8');\n\n(async () => {\n  try {\n    const compressedContent = await compress(content);\n    await writeFileAsync('./hello_world.txt.br', compressedContent);\n  } catch (err) {\n    console.error(err);\n  }\n})();\n```\n\n### Browser\n\nAn example of compressing something and downloading it from the browser.\n\n```js\nimport { compress } from 'wasm-brotli';\n\nconst content = new TextEncoder('utf-8').encode('Hello, world!');\n\n(async () => {\n  try {\n    const compressedContent = await compress(content);\n\n    const file = new File([compressedContent], 'hello_world.txt.br', { type: 'application/brotli' });\n\n    const link = document.createElement('a');\n    link.setAttribute('href', URL.createObjectURL(file));\n    link.setAttribute('download', file.name);\n    link.click();\n  } catch (err) {\n    console.error(err);\n  }\n})();\n```\n\n## Documentation\n\n### compress(buffer)\n\n*   `buffer` [`<Uint8Array>`][]\n\nCompress `buffer` using Brotli compression.\n\n### decompress(buffer)\n\n*   `buffer` [`<Uint8Array>`][]\n\nDecompress `buffer` using Brotli decompression.\n\n[`<Uint8Array>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n\n## Development\n\nTo build `wasm-brotli` you will need to install [`wasm-pack`][]. After that all\nthat is needed is to do the following:\n\n1.  Install all dependencies.\n\n    ```bash\n    npm install\n    ```\n\n2.  Build the module.\n\n    ```bash\n    npm run build\n    ```\n\n3.  Test the module.\n\n    ```bash\n    npm test\n    ```\n\n[`wasm-pack`]: https://rustwasm.github.io/wasm-pack/\n\n## Benchmark\n\n1.  Build `wasm-brotli` if you haven't already done so&mdash;\n    [see instructions here][].\n\n2.  Build and run the benchmark.\n\n    ```bash\n    npm run benchmark\n    ```\n\n3.  Wait a while... The tests might run quite slow.\n\n[see instructions here]: https://github.com/dfrankland/wasm-brotli#development\n\nThese results are run on a Dell XPS 13 9360 with an Intel® Core™ i7-7500U CPU @\n2.70GHz × 4 and 16 GB 1866 MHz DDR3 memory, running Ubuntu 19.10:\n\n```\niltorb (native compress)      1 byte(s)  x 5,159 ops/sec ±9.73% (66 runs sampled)\nwasm-brotli (wasm compress)   1 byte(s)  x 49.80 ops/sec ±0.61% (78 runs sampled)\niltorb (native compress)      1024 byte(s)       x 329 ops/sec ±1.63% (81 runs sampled)\nwasm-brotli (wasm compress)   1024 byte(s)       x 32.33 ops/sec ±0.77% (76 runs sampled)\niltorb (native compress)      1038336 byte(s)    x 2.23 ops/sec ±1.20% (15 runs sampled)\nwasm-brotli (wasm compress)   1038336 byte(s)    x 1.03 ops/sec ±0.93% (10 runs sampled)\n```\n","maintainers":[{"name":"dfrankland","email":"dylan@frankland.io"}],"time":{"modified":"2022-05-24T01:37:47.511Z","created":"2017-12-22T08:02:37.621Z","1.0.0":"2017-12-22T08:02:37.621Z","1.0.1":"2017-12-22T20:14:17.117Z","1.0.2":"2018-01-01T20:13:49.858Z","2.0.0":"2019-11-10T05:55:21.795Z","2.0.1":"2019-11-10T06:20:52.012Z","2.0.2":"2019-11-10T23:18:03.929Z"},"homepage":"https://github.com/dfrankland/wasm-brotli/tree/readme#readme","repository":{"type":"git","url":"git+https://github.com/dfrankland/wasm-brotli.git#readme"},"bugs":{"url":"https://github.com/dfrankland/wasm-brotli/issues"},"license":"MIT","readmeFilename":"README.md"}