lo-th / hex

simplified lzma compactor for js script or all txt files

Home Page:http://lo-th.github.io/hex/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple LZMA compressor

Use this webpage COMPRESSOR
to compress and save any javascript libs or any text file like .OBJ .BVH ...
For example three.min.js = 523ko to 106ko | ammo.js = 1599ko to 265ko

You only need extract.js to decompress you script and
add to you webpage or your worker look examples

i use lzma-js engine for compression

simple three example
ammo worker example

extract.load( ['./hex/three.hex', './hex/ammo.hex', './hex/bvh.hex'], callback, [0,1,2] );
// 0 return javasript main element
// 1 return Blob for send in worker : extract.get('ammo');
// 2 return textfile for any parser : extract.get('bvh'); 
// callback is the function launch after load and decompression

About

simplified lzma compactor for js script or all txt files

http://lo-th.github.io/hex/

License:MIT License


Languages

Language:JavaScript 97.2%Language:HTML 2.8%