koa-connect

  • Version 2.1.0
  • Published
  • 17.1 kB
  • No dependencies
  • MIT license

Install

npm i koa-connect
yarn add koa-connect
pnpm add koa-connect

Overview

Use Connect/Express middleware in Koa

Index

Functions

Functions

function koaConnect

koaConnect: (connectMiddleware: ConnectMiddleware) => any;
  • Returns a Koa middleware function that varies its async logic based on if the given middleware function declares at least 3 parameters, i.e. includes the next callback function.

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (14)

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/koa-connect.

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