https://github.com/hackergrrl/hyperdb-git-repo
p2p git repo primitive
https://github.com/hackergrrl/hyperdb-git-repo
Last synced: 9 months ago
JSON representation
p2p git repo primitive
- Host: GitHub
- URL: https://github.com/hackergrrl/hyperdb-git-repo
- Owner: hackergrrl
- Created: 2018-06-04T21:09:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-10T01:58:12.000Z (almost 8 years ago)
- Last Synced: 2024-12-28T21:45:39.226Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 14
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hyperdb-git-repo
> p2p git repo primitive for building p2p open source communities & escaping the
> corporate web
Implements [abstract-pull-git-repo][1].
## Usage
```js
#!/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][1].
## License
non-commercial
[1]: https://github.com/clehner/abstract-pull-git-repo