git ssb

0+

mixmix / flume-intro



Tree: 29cd9468499dec20d72aabeb0bfb5384ce91230b

Files: 29cd9468499dec20d72aabeb0bfb5384ce91230b / 1_write_to_flume.js

341 bytesRaw
1const Flume = require('flumedb')
2const FlumeLog = require('flumelog-offset')
3const codec = require('flumecodec')
4const FlumeView = require('flumeview-reduce')
5
6const log = FlumeLog('demo_log', { codec: codec.json })
7const db = Flume(log)
8
9
10db.append({ message: 'hi scuttlers' }, (err, data) => {
11 if (err) throw err
12
13 console.log(data)
14})
15

Built with git-ssb-web