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