{"_id":"lz4js","_rev":"7-d60fc84bd8670b72a4f7df00f50ff67f","name":"lz4js","description":"An Lz4 implementation for the browser.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"lz4js","version":"0.1.0","description":"An Lz4 implementation for the browser.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/Benzinga/lz4js.git"},"keywords":["lz4","compression","decompression","browser","commonjs"],"author":{"name":"John Chadwick"},"license":"ISC","bugs":{"url":"https://github.com/Benzinga/lz4js/issues"},"homepage":"https://github.com/Benzinga/lz4js#readme","gitHead":"a81878a19f6c7a2d03fade09f681667887313435","_id":"lz4js@0.1.0","_shasum":"41b8d824b7cea6ef6809192debb4da69305d8339","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.2.2","_npmUser":{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"},"dist":{"shasum":"41b8d824b7cea6ef6809192debb4da69305d8339","tarball":"https://registry.npmjs.org/lz4js/-/lz4js-0.1.0.tgz","integrity":"sha512-fJe76leWX4GrhJYPodvE0fvc+oWHTLisLBX0cwhu6kF47wGlTlb/P/QCoUg7RjdR+W/xblCqe6swUXeWK8Tytg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZSEKMA8dinjBMiqp6RTESU17FPY+zQF4JzVMDUjhgyAiBh4SC+IjbinOXlIPTHAA6HramqLLUIi2gdSUpEa0VYpQ=="}]},"maintainers":[{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lz4js-0.1.0.tgz_1467748663648_0.3956936616450548"}},"0.1.1":{"name":"lz4js","version":"0.1.1","description":"An Lz4 implementation for the browser.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/Benzinga/lz4js.git"},"keywords":["lz4","compression","decompression","browser","commonjs"],"author":{"name":"John Chadwick"},"license":"ISC","bugs":{"url":"https://github.com/Benzinga/lz4js/issues"},"homepage":"https://github.com/Benzinga/lz4js#readme","gitHead":"2905992d736522d72283b5d926c9b101d71e733e","_id":"lz4js@0.1.1","_shasum":"7a9a83165d72b763484e6916032d7828a614a2b3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.2.2","_npmUser":{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"},"dist":{"shasum":"7a9a83165d72b763484e6916032d7828a614a2b3","tarball":"https://registry.npmjs.org/lz4js/-/lz4js-0.1.1.tgz","integrity":"sha512-+t3fMerhd6lScNn83q2hIB9rwzPpvaMJFGcyw9pZqvof3mDbuAxCQqCBUAbrSHM4+1Copesw3VzzFaKnE+apEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFNFS8FSh4D/3TFD9u9qHcPHJ+czXXU9NWhM60UNNvHwIhAOTbhOVIxxsZVC2QYcbFscDgQb3G2/by7ZPL+qzsgKyY"}]},"maintainers":[{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/lz4js-0.1.1.tgz_1467749706470_0.37277910904958844"}},"0.1.2":{"name":"lz4js","version":"0.1.2","description":"An Lz4 implementation for the browser.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/Benzinga/lz4js.git"},"keywords":["lz4","compression","decompression","browser","commonjs"],"author":{"name":"John Chadwick"},"license":"ISC","bugs":{"url":"https://github.com/Benzinga/lz4js/issues"},"homepage":"https://github.com/Benzinga/lz4js#readme","gitHead":"540d8f9a6256889ac695c11a0e54d0780ad660fb","_id":"lz4js@0.1.2","_shasum":"5267b808dfa2e00f7d476ea49592876a0b9e160c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.2.2","_npmUser":{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"},"dist":{"shasum":"5267b808dfa2e00f7d476ea49592876a0b9e160c","tarball":"https://registry.npmjs.org/lz4js/-/lz4js-0.1.2.tgz","integrity":"sha512-gOQ5Da34VIE/CtRZO4iNRqQRCC01l+xpS29esekcdPod65MMz6pZQumSecdrbs33bvEz/d9/d7engQu/v4N47A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5cxvmdyWvrVovyF/J60Ymot7GetusNL2lC/RhyDxpqAiEA2qG9Zu7NApxUHi9OeXRl4+u/rhGyNPEzIza6wJiq9Sk="}]},"maintainers":[{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lz4js-0.1.2.tgz_1467919989296_0.8480985499918461"}},"0.1.3":{"name":"lz4js","version":"0.1.3","description":"An Lz4 implementation for the browser.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/Benzinga/lz4js.git"},"keywords":["lz4","compression","decompression","browser","commonjs"],"author":{"name":"John Chadwick"},"license":"ISC","bugs":{"url":"https://github.com/Benzinga/lz4js/issues"},"homepage":"https://github.com/Benzinga/lz4js#readme","gitHead":"7fc87b52082dee8fb55eea6514d174bb85a6a44e","_id":"lz4js@0.1.3","_shasum":"56aeea86da1ce39d858508f9ee2c425a1801c41f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.2.2","_npmUser":{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"},"dist":{"shasum":"56aeea86da1ce39d858508f9ee2c425a1801c41f","tarball":"https://registry.npmjs.org/lz4js/-/lz4js-0.1.3.tgz","integrity":"sha512-XGAY89gCVqz29UKE43oh4KVkj73+vCrgigiknsMvtt9O3RigZXG6/9fv/LknH02FYg3PXSBhpzJzr5uTeMnXug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwoMMcNW1aFDPvpaGETEBuhHgeQ3RPupQMoTeLNuTHsAiAnQyUaO0JysmcN/kQ64P/cSd/gyQAm6CFVb7Rbb3Uvlw=="}]},"maintainers":[{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lz4js-0.1.3.tgz_1467920785354_0.7950664421077818"}},"0.2.0":{"name":"lz4js","version":"0.2.0","description":"An Lz4 implementation for the browser.","main":"lz4.js","scripts":{"test":"mocha -R spec test/cases"},"repository":{"type":"git","url":"git+ssh://git@github.com/Benzinga/lz4js.git"},"keywords":["lz4","compression","decompression","browser","commonjs"],"author":{"name":"John Chadwick"},"license":"ISC","bugs":{"url":"https://github.com/Benzinga/lz4js/issues"},"homepage":"https://github.com/Benzinga/lz4js#readme","devDependencies":{"chai":"^3.5.0","eslint":"^3.0.1","eslint-config-semistandard":"^6.0.2","eslint-config-standard":"^5.3.5","eslint-plugin-promise":"^2.0.0","eslint-plugin-react":"^5.2.2","eslint-plugin-standard":"^2.0.0","mocha":"^2.5.3"},"gitHead":"aa6be2ff78e2179f42695cfaa454ac6fec2f15ff","_id":"lz4js@0.2.0","_shasum":"09f1a397cb2158f675146c3351dde85058cb322f","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.46","_npmUser":{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"},"dist":{"shasum":"09f1a397cb2158f675146c3351dde85058cb322f","tarball":"https://registry.npmjs.org/lz4js/-/lz4js-0.2.0.tgz","integrity":"sha512-gY2Ia9Lm7Ep8qMiuGRhvUq0Q7qUereeldZPP1PMEJxPtEWHJLqw9pgX68oHajBH0nzJK4MaZEA/YNV3jT8u8Bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3KWFWFwRO47h7PoBguSQXzIwEeC2fBZNnpSn/CqRaiAiEAm6QkQVUrwTF+M5qnJ71iiMmpIaU8k2TjymXzJxKweDA="}]},"maintainers":[{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/lz4js-0.2.0.tgz_1468610545976_0.5802581803873181"}}},"readme":"# Lz4.js [![NPM version](https://badge.fury.io/js/lz4js.svg)](https://www.npmjs.com/package/lz4js) [![Build Status](https://travis-ci.org/Benzinga/lz4js.svg?branch=master)](https://travis-ci.org/Benzinga/lz4js) [![codecov](https://codecov.io/gh/Benzinga/lz4js/branch/master/graph/badge.svg)](https://codecov.io/gh/Benzinga/lz4js)\nLz4.js is an implementation of Lz4 designed to be used in web browsers. It contains no dependencies on external libraries or Node.JS, though it is organized as a set of CommonJS modules. It is recommended to use Browserify or WebPack to bundle this for the web browser.\n\n## Installation\n```\nnpm install lz4js\n```\n\n## Usage\n```javascript\nvar lz4 = require(\"lz4js\");\nvar fs = require(\"fs\");\n\n// Compress 128 bytes of zero.\nvar compressed = lz4.compress(new Array(128));\n\n// Decompress.\nvar decompressed = lz4.decompress(compressed);\n\n// Compress file.bin to file.lz4.\nvar data = fs.readFileSync(\"file.bin\");\ncompressed = Buffer.from(lz4.compress(data));\nfs.writeFileSync('file.lz4', compressed);\n```\n\n> **Note**: The high-level `compress` and `decompress` functions deal with framed Lz4 data and do not support raw block data nor legacy Lz4 blocks.\n\n## API\nThe API accepts either `Array`s or `Uint8Array`s. Arrays are expected to be arrays of unsigned 8-bit values. The API will return `Uint8Array`s if the browser supports them, or `Array`s otherwise.\n\n  - `compress(buffer: Array, maxSize: Number): Array`\n\n    Compresses a buffer using Lz4. maxSize sets bounds on the output length; it is recommended to not specify this unless you know what you're doing.\n    Any unused buffer data will be sliced before the buffer is returned.\n\n  - `decompress(buffer: Array, maxSize: Number): Array`\n\n    Decompresses a buffer using Lz4. maxSize sets bounds on the output length; if you know the output length, this will reduce memory usage somewhat.\n    Any unused buffer data will be sliced before the buffer is returned.\n","maintainers":[{"name":"johnwchadwick","email":"johnwchadwick@gmail.com"}],"time":{"modified":"2022-06-19T14:55:39.883Z","created":"2016-07-05T19:57:45.848Z","0.1.0":"2016-07-05T19:57:45.848Z","0.1.1":"2016-07-05T20:15:08.949Z","0.1.2":"2016-07-07T19:33:11.678Z","0.1.3":"2016-07-07T19:46:27.716Z","0.2.0":"2016-07-15T19:22:26.930Z"},"homepage":"https://github.com/Benzinga/lz4js#readme","keywords":["lz4","compression","decompression","browser","commonjs"],"repository":{"type":"git","url":"git+ssh://git@github.com/Benzinga/lz4js.git"},"author":{"name":"John Chadwick"},"bugs":{"url":"https://github.com/Benzinga/lz4js/issues"},"license":"ISC","readmeFilename":"README.md"}