Commit 87c2b57d authored by Eliot Berriot's avatar Eliot Berriot

Merge branch 'release/0.3.3'

parents 5b5af28a 395c4bcd
Pipeline #209 passed with stages
in 41 seconds
var fs = require('fs')
var LZString = require ('lz-string')
var _in = 'src/assets/data.json'
var _out = 'src/assets/data.lzs'
console.log('Compressing data...')
fs.readFile(_in, 'utf8', function (err, data) {
if (err) {
return console.log(err);
}
var compressed = LZString.compressToUTF16(data)
fs.writeFile(_out, compressed, function(err) {
if(err) {
return console.log(err);
}
console.log("The data was compressed and saved under", _out);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment