Socket
Book a DemoInstallSign in
Socket

git-objectify-pack

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-objectify-pack

transform offset+data bits into full git objects

latest
Source
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

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(oid, ready) {
  // for finding ref-delta objects that might
  // be outside of the current packfile
  return ready(null, referencedObject | null)
}

API

objectify(find) -> r/w stream of objects.

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

Emits git objects with attached string hashes.

License

MIT

Keywords

git

FAQs

Package last updated on 27 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts