1.0.1 • Published 9 years ago
@koax/thunk v1.0.1
thunk
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