Revert Xcode PNG compression (CgBI) in plain javascript.
You can revert stream...
var cgbiToPng = require('cgbi-to-png');
var cgbiFileStream = fs.createReadStream(...);
cgbiToPng(cgbiFileStream,function(err,pngStream){
// handle reverted pngStream (eg. pngStream.pipe(...))
});
...or buffer directly.
var cgbiBuffer = fs.readFileSync(...);
var pngBuffer = cgbiToPng.revert(cgbiBuffer);