co-compose

  • Version 7.0.0
  • Published
  • 14.9 kB
  • No dependencies
  • MIT license

Install

npm i co-compose
yarn add co-compose
pnpm add co-compose

Overview

AdonisJS and Koa style middleware layer with ability to run parallel middleware

Index

Classes

class Middleware

class Middleware {}
  • Exposes the API to register middleware and later execute them using the runner.

method register

register: (list: any[]) => this;
  • Register an array of middleware to executed later.

method runner

runner: () => Runnable;
  • Returns an instance of runner to execute the middleware

Package Files (2)

Dependencies (0)

No dependencies.

Dev Dependencies (21)

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/co-compose.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/co-compose)
  • HTML
    <a href="https://www.jsdocs.io/package/co-compose"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>