koa-bodyparser
E553128
koa-bodyparser is a middleware module for the Koa web framework that parses incoming request bodies (such as JSON, form, and text) into usable JavaScript objects.
Statements (41)
| Predicate | Object |
|---|---|
| instanceOf |
HTTP request body parser
ⓘ
Koa middleware ⓘ Node.js library ⓘ |
| alternativeTo | body-parser for Express ⓘ |
| category |
server-side JavaScript
ⓘ
web development ⓘ |
| compatibleWith |
Koa
NERFINISHED
ⓘ
Koa 2 NERFINISHED ⓘ |
| ecosystem |
Koa ecosystem
ⓘ
Node.js ecosystem ⓘ |
| hasFeature |
configurable body size limits
ⓘ
configurable parsing options ⓘ error handling for invalid JSON ⓘ |
| importExample | const bodyParser = require('koa-bodyparser'); ⓘ |
| inputFormat |
application/json
ⓘ
application/x-www-form-urlencoded ⓘ text/plain ⓘ |
| installCommand |
npm install koa-bodyparser
ⓘ
yarn add koa-bodyparser ⓘ |
| license | MIT License ⓘ |
| maintainedIn | open-source community ⓘ |
| middlewareType | body parser middleware ⓘ |
| output | ctx.request.body in Koa ⓘ |
| parsesInto | JavaScript objects ⓘ |
| programmingLanguage | JavaScript ⓘ |
| relatedTo |
koa
ⓘ
koa-compose NERFINISHED ⓘ koa-router NERFINISHED ⓘ |
| repositoryPlatform | GitHub NERFINISHED ⓘ |
| requires | Koa application context ⓘ |
| runsOn | Node.js NERFINISHED ⓘ |
| supports |
JSON request bodies
ⓘ
URL-encoded form request bodies ⓘ text request bodies ⓘ |
| supportsVersion | Node.js 8 and above (typical) ⓘ |
| targetAudience |
Koa framework users
ⓘ
Node.js developers ⓘ |
| typicalUse | parsing HTTP request bodies in Koa applications ⓘ |
| usageExample | app.use(bodyParser()); ⓘ |
| usedWith |
Koa routing middleware
ⓘ
REST APIs built with Koa ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.