json-lzma-wrap
v1.0.2
Published
Turns a json file into a lzma encoded file, for use with ajax get "data"
Downloads
14
Readme
This plugin creates a base64 string for GRUNT builds. It ic a LZMA binary which you will need to use a decompression function
the following decompression works pretty well, essentially you want a ajax which will NOT get a json response, but rather a self executing function.
(function(){return "XQAAAAKVqAwAAAAAAAA9goBCAF3Qrh+Nx1Ol2CAt8MUAP7dTn4"}())
You then pass this function into decompression utility, i have included it in here also but as decompression.js this is written in ES6
DecompressionUtil.lzmaJSON = (response) => {};
you can use it as such DecompressionUtil.lzmaJSON(ajaxJSONresponse)
This will then return a something which you can parse as json.
compression clocks in at around 90%