mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-05 19:31:01 +01:00
11 lines
225 B
JavaScript
11 lines
225 B
JavaScript
'use strict';
|
|
|
|
var fs = require('fs');
|
|
var pako = require('../index.js');
|
|
|
|
var data = new Uint8Array(fs.readFileSync(__dirname +'/samples/lorem_1mb.txt'));
|
|
|
|
|
|
for (var i=0; i<50; i++) {
|
|
pako.deflate(data, { level: 1 });
|
|
}
|