Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

git-autoregister-odb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-autoregister-odb

autoregister git object databases

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

git-autoregister-odb

given fs, dir, a method for finding objects by sha, and a list of potential backends, automatically load the backends that apply to this directory.

var odb = {}
  , fs = require('fs')
  , path = require('path')
  , autoregister = require('git-autoregister-odb')

var loose = require('git-odb-loose')
  , pack = require('git-odb-pack')

autoregister(fs, path.join(__dirname, '.git'), find, [
  loose, pack
], ready)

function ready(err, backends) {
  odb.backends = backends
}

function find(oid, ready) {
  //
}

API

autoregister(fs, directory, findSha, candidate list, ready)

License

MIT

Keywords

git

FAQs

Package last updated on 18 Jun 2016

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