kronos-koa

2.0.0 • Public • Published

npm Greenkeeper semantic-release styled with prettier Build Status codecov.io Coverage Status Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs XO code style downloads Commitizen friendly

kronos-koa

Koa modifications needed by Kronos

API

Table of Contents

KronosKoa

Extends Koa

Kronos variant of koa

use

Overwrite the super function. It will update the middleware chain

Parameters

  • fn

callback

Overwrites the callback. This is now a dynamic callback. The returned function takes the changing generator chain instead of a fixed one.

hasMiddleware

Returns true if there is still registered middleware

Returns boolean status True if there is still registered middleware

delete

Removes an existing generator function

Parameters

  • fn GeneratorFunction The generator function to be deleted

Returns void

respond

Response helper. copied from the original

Parameters

  • ctx

install

With npm do:

npm install kronos-koa

license

BSD-2-Clause

/kronos-koa/

    Package Sidebar

    Install

    npm i kronos-koa

    Weekly Downloads

    2

    Version

    2.0.0

    License

    BSD-2-Clause

    Unpacked Size

    12.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • darlenya