Created
May 12, 2015 01:08
-
-
Save stormslowly/12d561679942f1d9cdac to your computer and use it in GitHub Desktop.
git object inflate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var zlib = require('zlib'); | |
var fs = require('fs'); | |
var fileName = process.argv[2]; | |
var buffer = fs.readFileSync(fileName); | |
zlib.unzip(buffer, function(_, buf) { | |
// console.log(buf.toString('hex')); | |
console.log(buf.toString()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment