p2p git repo primitive
Switch branches/tags
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
README.md
index.js
package-lock.json
package.json

README.md

hyperdb-git-repo

p2p git repo primitive for building p2p open source communities & escaping the corporate web

Implements abstract-pull-git-repo.

Usage

#!/usr/bin/env node

var toPull = require('stream-to-pull-stream')
var pull = require('pull-stream')
var hyperdb = require('hyperdb')
var Repo = require('hyperdb-git-repo')
var gitRemoteHelper = require('pull-git-remote-helper')

var name = process.argv[3].replace('foo://', '')

var db = hyperdb('../' + name)

db.ready(function () {
  pull(
    toPull(process.stdin),
    gitRemoteHelper(Repo(db)),
    toPull(process.stdout)
  )
})

API

Implements the abstract-pull-git-repo API.

License

non-commercial