Skip to content

Javascript implementation of LHA extractor (-lh4-, static huffman) format.

Notifications You must be signed in to change notification settings

erlandranvinge/lh4.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

lh4.js

Javascript implementation of LHA extractor (-lh4-, static huffman) format. Requires ArrayBuffers (HTML5).

Usage

var input = new Uint8Array(...);

var lha = new LhaReader(new LhaArrayReader(input));
var output = lha.extract('file-in-archive.txt', function(done, total) {
    console.log('Extracting LHA data: '   (done / total * 100)   '% complete.');
});

All input/output is passed as an Uint8Array. In order to support new formats (e.g. reading data directly from an URL), implement your own versions of LhaArrayReader/LhaArrayWriter objects.

About

Javascript implementation of LHA extractor (-lh4-, static huffman) format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published