node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


git pack index file 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')
  .on('data', function(packidx) {

return a writable stream that emits a single 'data' event containing a PackIDX instance.

attempt to find objectID in this index file. returns either an offset object, or null if the objectID isn't present in this pack index.

if an offset object is returned, it'll look like so:

{ offset: number | {hi: number, lo: number}
, next: number | {hi: number, lo: number} | null }