npm install tiny-inflate
To use tiny-inflate, you need two things: a buffer of data compressed with deflate,
and the decompressed size (often stored in a file header) to allocate your output buffer.
Input and output buffers can be either node
var inflate = require('tiny-inflate'); var compressedBuffer = new Bufer([ ... ]); var decompressedSize = ...; var outputBuffer = new Buffer(decompressedSize); inflate(compressedBuffer, outputBuffer);