lzma.js

An LZMA implementation in JavaScript, compiled from lzip

Github星跟踪图

lzma.js

An LZMA implementation in JavaScript, compiled from lzip using Emscripten
with the goal of having a small and fast implementation as much as
possible.

lzip is GPL, additional code is MIT

Building

Run doit.sh. It will build both a native build, lzma-native, and lzma.js.
Both are useful because you can use the native build to compress locally,
and the JS build to decompress on the client browser. But, you can use
whichever you want in either location.

Usage

LZMA.compress(data) receives an array of 8-bit data and returns an
array of compressed data.

LZMA.decompress(data) receives an array of compressed 8-bit data and
returns an array of decompressed data.

Use lzma-decoder.js if you just need to decode. It's 66K, or 23K
if your webserver does gzip. If you need compression too, use
lzma-full.js which is a little larger.

See test-decoder.js, test-full.js and test-full.html for example
uses.

主要指标

概览
名称与所有者kripken/lzma.js
主编程语言C++
编程语言C++ (语言数: 3)
平台
许可证
所有者活动
创建于2012-03-11 04:44:33
推送于2012-05-23 11:56:39
最后一次提交2012-05-23 13:56:32
发布数0
用户参与
星数57
关注者数6
派生数14
提交数24
已启用问题?
问题数2
打开的问题数2
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?