given a numerical git object type and a buffer, produce a (humane!) javascript object.
var toJS = require('git-to-js')
toJS(1, new Buffer(...)) -> Commit object
toJS(2, new Buffer(...)) -> Tree object
toJS(3, new Buffer(...)) -> Blob object
toJS(4, new Buffer(...)) -> Tag object
given type and buffer, produce a JS object.
blob constructor. see git-object-blob.
commit constructor. see git-object-commit.
tree constructor. see git-object-tree.
tag constructor. see git-object-tag.
MIT