npm.io
1.0.1 • Published 10 years ago

@koax/thunk

Licence
MIT
Version
1.0.1
Deps
2
Vulns
0
Weekly
0

thunk

Build status Git tag NPM version Code style

Koax thunk middleware. Included in Koax to give it thunk support.

Installation

$ npm install @koax/thunk

Middleware

function thunk (action, next) {
  if (isFunction(action)) return toPromise(action)
  return next()
}

License

MIT