lzma.js

An LZMA implementation in JavaScript, compiled from lzip

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerkripken/lzma.js
Primary LanguageC++
Program languageC++ (Language Count: 3)
Platform
License:
所有者活动
Created At2012-03-11 04:44:33
Pushed At2012-05-23 11:56:39
Last Commit At2012-05-23 13:56:32
Release Count0
用户参与
Stargazers Count57
Watchers Count6
Fork Count14
Commits Count24
Has Issues Enabled
Issues Count2
Issue Open Count2
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private