https://github.com/fraction/flumeview-array
simple flumeview built on flumelog-array
https://github.com/fraction/flumeview-array
Last synced: about 1 month ago
JSON representation
simple flumeview built on flumelog-array
- Host: GitHub
- URL: https://github.com/fraction/flumeview-array
- Owner: fraction
- Created: 2018-12-21T20:33:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T22:50:25.000Z (about 4 years ago)
- Last Synced: 2024-04-14T23:30:09.332Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flumeview-array
> simple flumeview built on flumelog-array
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)
## Install
```
npm install flumeview-array
```
## Usage
```js
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](https://github.com/fraction)
## Contributing
PRs accepted.
## License
ISC © 2018 Fraction LLC