@koax/promise

1.0.0 • Public • Published

promise

Build status Git tag NPM version Code style

Promise middleware. Included in Koax to give it promise support.

Installation

$ npm install @koax/promise

Middleware

function promise (action, next) {
  if (isPromise(action)) return action
  return next()
}

License

MIT

/@koax/promise/

    Package Sidebar

    Install

    npm i @koax/promise

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • koax