Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

Heatshrink.js

An Emscripten port of the heatshrink compression library to JS.

This is built with Espruino's heatshrink_config.h to allow compressed files to be created easily for it.

A complete build is available at http://www.espruino.com/js/heatshrink.js

To build, install emscripten, then:

git clone https://github.com/atomicobject/heatshrink
./build.sh

Using:

<script src="http://www.espruino.com/js/heatshrink.js"></script>
<script>
var input = new Uint8Array(32);
// ...
var compressed = heatshrink_compress(input);
// compressed is a Uint8Array
var decompressed = heatshrink_decompress(compressed);
// decompressed is a Uint8Array
</script>

About

An Emscripten port of the [heatshrink compression library](https://github.com/atomicobject/heatshrink) to JS

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.