hyperdb-git-repo
v1.0.4
Published
git repo over a hyperdb
Downloads
6
Readme
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