lz4

LZ4 streaming compression and decompression

npm install lz4
5 downloads in the last day
15 downloads in the last week
112 downloads in the last month

�g/**

  • Compress data into a block (no archive format) */ // Modules var path = require('path') var fs = require('fs')28lz4P..') V�Input/Output fiai�File = process.argv[2] || 'test'Yo;+3+J�+ lz4.extension ?� = fs.readHRSync( )��Allocate max,�size, to be sliced accordingly after cpu#�� = new Buffer(��ncodeBound(�� .length) )

console.log('��ing %s to %s...',�,h���startTimU�Date.now(�z�is synchronous�anative0�!ed-0SizNYC��@�javascriptQJS�../lib/binL4').0 ]PaTiming�Ydelta�& -�d

if (K��> 0) { ���qfs.stat�Ox.size �@ '�Hb� %d bytesi� %dms (%dMb/s)' , y Cj� � > 0 ? Math.r8a 100 K�A/ ( 4� (1 << 20) ) *)P0 ) / � : 0 ) 4# ==.�5(0,���) } else7 'X�could not�'eR� }

fs.write^l��, output )

npm loves you