Skip to content
/ hex Public

simplified lzma compactor for js script or all txt files

License

Notifications You must be signed in to change notification settings

lo-th/hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published