git-objectify-pack

transform offset+data bits into full git objects

git-objectify-pack

transform metadata objects emitted from git-list-pack into full-on git objects.

 
var fs = require('fs')
  , list = require('git-list-pack')
  , objectify = require('git-objectify-pack')
 
fs.createReadStream('path/to/packfile')
  .pipe(list())
  .pipe(objectify(find))
 
function find(oidready) {
  // for finding ref-delta objects that might 
  // be outside of the current packfile 
  return ready(null, referencedObject | null)
}
 

Create a r/w stream suitable for piping git-list-pack streams into.

Emits git objects with attached string hashes.

MIT