@koax/thunk

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @koax/thunk

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • koax