JSPM

@bpframework/middleware-koa-bodyparser

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q48819F
  • License MIT

bodyparser middleware of bpframework

Package Exports

  • @bpframework/middleware-koa-bodyparser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bpframework/middleware-koa-bodyparser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

koa bodyparser middleware in bpframework.

Middleware specification

https://github.com/bpcloud/middleware

usage

Setup.

import { Application } from 'bpframework';
import * as middleware_bodyparser from '@bpframework/middleware-koa-bodyparser';

// bodyparser middleware is used by default.
Application.use(middleware_bodyparser.middleware({
  onErrorBodyParser: (err:any, ctx:koa.Context)=>{
    ctx.response.status = 415;
  }
}));
Application.runKoa(...);