Skip to content

simple flumeview built on flumelog-array

Notifications You must be signed in to change notification settings

fraction/flumeview-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flumeview-array

simple flumeview built on flumelog-array

Table of Contents

Install

npm install flumeview-array

Usage

const Log = require('flumelog-array')
const Flume = require('flumedb')
const View = require('flumeview-array')

var db = Flume(Log())

db.use('bool', View(x => !!x))

db.append({foo: 1}, function (err, seq) {
  if (err) throw err
  db.bool.get(seq, (err, val) => {
    if (err) throw err
    console.log(val) // => true
  })
})

Maintainers

@fraction

Contributing

PRs accepted.

License

ISC © 2018 Fraction LLC

About

simple flumeview built on flumelog-array

Resources

Stars

Watchers

Forks

Packages

No packages published