akyuu-body-parser

1.0.0 • Public • Published

Akyuu Body Parser

Body parser plugin for Akyuu.js.

It's based on body-parser of Expressjs.

Installation

$ npm install --save -d akyuu-body-parser

Usage

Install this package and add configuration section below to your bodyParser plugins section of configuration in Akyuu.js.

{
    enabled: true,

    urlencoded: {
        // options refer to
        // https://www.npmjs.com/package/body-parser#bodyparserurlencodedoptions
        limit: "100kb"
    },

    json: true,  // use true to support non-option

    text: false, // false or undefined to disable this method,

    raw: {
        type: "application/octet-stream"
    }
}

You can refer to https://www.npmjs.com/package/body-parser#api to get all supported format.

Readme

Keywords

Package Sidebar

Install

npm i akyuu-body-parser

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • xadillax