1.0.0 • Published 8 years ago

flob v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

flob

Build status Git tag NPM version Code style

Bind a redux middleware stack that has redux-flo at the top.

Installation

$ npm install flob

Usage

import flob from 'flob'
import rlog from 'redux-log'

let arr = []
let log = flob(rlog(arr))

log(function * () {
  yield 'hello'
  yield 'world'
})

arr // => ['hello', 'world']

API

flob(...mw)

  • mw - redux middleware

Returns: a function that dispatches actions to the middleware stack

License

MIT