How to use the Deflate function from pako

Find comprehensive JavaScript pako.Deflate code examples handpicked from public code repositorys.

398
399
400
401
402
403
404
405
406
407
* ```javascript
* var pako = require('pako')
*   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])
*   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);
*
* var deflate = new pako.Deflate({ level: 3});
*
* deflate.push(chunk1, false);
* deflate.push(chunk2, true);  // true -> last chunk
*
fork icon4
star icon0
watch icon9