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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?