git-packidx-parser

git pack index file parser

git-packidx-parser

given a packfile, create a stream to parse it's index file.

currently only supports v2 idx files.

 
var packidx = require('git-packidx-parser')
 
fs.createReadStream('path/to/packidx')
  .pipe(packidx(<packfile>))
  .on('data', function(packidx) {
 
  })
 

given packfile (which should provide _read(offset, nextOffset, ready)), return a writable stream that emits a single 'data' event containing a PackIDX instance.

if ready is given, it will be called with (err, packidx) -- err will be null if there were no errors.

Read an oid from the pack file.

MIT