node package manager


synchronous zlib in Node>=0.8


zlib sync written in C++ using NAN (Native Abstractions for Node.js) Released in June, 2014. Available in Node greater than 0.8

$ npm install zlib-raw-sync

var zrs = require("zlib-raw-sync");
var buf = require("fs").readFileSync(some_deflated_file);
var inflated = zrs.inflate(buf); // inflated buffer 

currently, inflateRawSync() is the only function available. In future, deflateRawSync() will be implemented. Feel free to

  1. contact me to urge implementation
  2. fork this repository and implement deflateRawSync()