@marblejs/middleware-body

Body parser middleware for Marble.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@marblejs/middleware-body
2,02944.0.37 months ago4 years agoMinified + gzip package size for @marblejs/middleware-body in KB

Readme

<img src="https://github.com/marblejs/marble/blob/master/assets/img/logo.png?raw=true" width="200" alt="Marble.js logo"/>

@marblejs/middleware-body
A request body parser middleware for Marble.js.

Installation

$ npm i @marblejs/middleware-body
Requires @marblejs/core and @marblejs/http to be installed.

Documentation

For the latest updates, documentation, change log, and release information visit docs.marblejs.com and follow @marblejs on Twitter.

Usage

import { bodyParser$ } from '@marblejs/middleware-body';
​
const middlewares = [
  bodyParser$(),
  // ...
];
​
const effects = [
  // ...
];
​
export const app = httpListener({ middlewares, effects });
License: MIT