Skip to content

akyuujs/akyuu-body-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Body parser plugin for Akyuu.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published