mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-04 10:50:59 +01:00
12 lines
301 B
JavaScript
12 lines
301 B
JavaScript
'use strict';
|
|
|
|
var fs = require('fs');
|
|
var pako = require('../index.js');
|
|
|
|
var data = new Uint8Array(fs.readFileSync(__dirname +'/samples/lorem_1mb.txt'));
|
|
|
|
var deflated = pako.deflate(data, { level: 6/*, to: 'string'*/ });
|
|
|
|
for (var i=0; i<200; i++) {
|
|
pako.inflate(deflated, { to: 'string' });
|
|
}
|