level-live-stream
Advanced tools
+1
-1
| { | ||
| "name": "level-live-stream", | ||
| "version": "1.4.6", | ||
| "version": "1.4.7", | ||
| "homepage": "https://github.com/dominictarr/level-live-stream", | ||
@@ -5,0 +5,0 @@ "repository": { |
+16
-1
@@ -10,3 +10,3 @@ # level-live-stream | ||
| Just like the couchdb changes feed, but for any arbitary range of keys! | ||
| Just like the couchdb changes feed, but for any arbitrary range of keys! | ||
@@ -37,2 +37,17 @@ see also, [level-livefeed](https://github.com/Raynos/level-livefeed/) for the same idea, | ||
| You can also attach `liveStream` as a method to the db like below. | ||
| This will allow [multilevel](https://github.com/juliangruber/multilevel) | ||
| clients to use `db.liveStream()`. | ||
| ```js | ||
| var LiveStream = require('level-live-stream'); | ||
| // attach the `liveStream` method using `install` | ||
| LiveStream.install(db); | ||
| // then invoke the method using the `db` instance | ||
| db.liveStream() | ||
| .on('data', console.dir); | ||
| ``` | ||
| ## options | ||
@@ -39,0 +54,0 @@ |
4828
9.13%67
28.85%