git ssb

0+

Josiah / ssb-tags



Commit 26cb584b07aa6709f758873f12119382291beab7

Update README with api info

Josiah Witt committed on 1/19/2018, 3:04:49 AM
Parent: 61c923460be3b91b9c4cf9d9b52ae59befefd4a9

Files changed

README.mdchanged
README.mdView
@@ -1,7 +1,30 @@
11 # sbot-tags
22
33 [scuttlebot](http://scuttlebutt.nz/) plugin for indexing reduced "tags" state.
44
5 +## API
6 +
7 +### `sbot.tags.get((err, data) => ...)`
8 +
9 +`data` is an object of form
10 +
11 +```js
12 +{
13 + // a user id
14 + '@DOIjef...': {
15 + // a tag id
16 + '%cJEMdje...': {
17 + // a msg id
18 + '%x423jsadxj...': 1204594095 // timestamp tag was created
19 + }
20 + }
21 +}
22 +```
23 +
24 +### `sbot.tags.stream() => pull-stream`
25 +
26 +See [flumeview-reduce docs](https://github.com/flumedb/flumeview-reduce#dbnamestreamlive-boolean--pullsource).
27 +
528 ## License
629
730 MIT

Built with git-ssb-web