json-lzma-wrap

1.0.2 • Public • Published

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%

Readme

Keywords

Package Sidebar

Install

npm i json-lzma-wrap

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • responsive