Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominictarr/scuttlebucket
https://github.com/dominictarr/scuttlebucket
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dominictarr/scuttlebucket
- Owner: dominictarr
- License: mit
- Created: 2012-12-12T20:30:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-09T23:30:41.000Z (over 11 years ago)
- Last Synced: 2024-08-08T20:38:36.973Z (3 months ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-peer-to-peer - scuttlebucket
- awesome-peer-to-peer - scuttlebucket
README
# scuttlebucket
Nested scuttlebutts
[![server-tests](https://travis-ci.org/dominictarr/scuttlebucket)
](https://secure.travis-ci.org/dominictarr/scuttlebucket.png?branch=master)[![browser-support](https://ci.testling.com/dominictarr/scuttlebucket.png)
](https://ci.testling.com/dominictarr/scuttlebucket)## Example
``` js
var Scuttlebucket = require('scuttlebucket')
var Model = require('scuttlebutt/model')
var Chat = require('scuttlebutt/model')
var Text = require('r-edit')function create() {
return new Scuttlebucket()
.add('meta', new Model())
.add('chat', new Chat())
.add('text', new Text())
}//create two instances, and pipe them together!
var A = create(), B = create()
var as = A.createStream()
var bs = B.createStream()as.pipe(bs).pipe(as)
```
and everything just works like magic!## License
MIT