Gathering detailed insights and metrics for http-body-parser
Gathering detailed insights and metrics for http-body-parser
Gathering detailed insights and metrics for http-body-parser
Gathering detailed insights and metrics for http-body-parser
@middy/http-json-body-parser
Http JSON body parser middleware for the middy framework
milliparsec
tiniest body parser in the universe
@middy/http-urlencode-body-parser
Urlencode body parser middleware for the middy framework
@middy/http-multipart-body-parser
Http event normalizer middleware for the middy framework
🔥 A body parser for koa, express. support json, form, text, multipart and stream type body.
npm install http-body-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
71.8
Supply Chain
99.4
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
12,520
Last Day
2
Last Week
6
Last Month
53
Last Year
846
5 Stars
32 Commits
1 Forks
1 Watchers
7 Branches
1 Contributors
Updated on Dec 30, 2020
Minified
Minified + Gzipped
Latest Version
1.1.9
Package Id
http-body-parser@1.1.9
Size
73.00 kB
NPM Version
4.6.1
Node Version
7.10.0
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
-40%
6
Compared to previous week
Last Month
-36.1%
53
Compared to previous month
Last Year
-8.2%
846
Compared to previous year
1
🔥 A body parser for koa, express. support json
, form
, text
, multipart
and stream
type body.
1const Koa = require('koa'); 2const bodyParser = require('http-body-parser').koa; 3 4const app = new Koa(); 5app.use(bodyParser({})); 6 7app.use(async ctx => { 8 // the parsed body will store in ctx.request.body 9 // if nothing was parsed, body will be an empty object {} 10 ctx.body = ctx.request.body; 11});
1const express = require('express'); 2const bodyParser = require('http-body-parser').express; 3 4const app = express(); 5app.use(bodyParser({})); 6 7server.use('/', function(req, res) { 8 res.send(req.body) 9})
1{ 2 enableTypes: ['json', 'form', 'text', 'multipart', 'stream'], 3 json: { 4 limit: 1024*1024, 5 strict: true, 6 extendsTypes: [] 7 }, 8 text: { 9 limit: 1024*1024, 10 extendsTypes: [] 11 }, 12 form: { 13 limit: 56*1024, 14 extendsTypes: [] 15 }, 16 stream: { 17 limit: 1024*1024, 18 path: `the operating system's default directory` 19 }, 20 multipart: { 21 limit: 1024*1024, 22 path: `the operating system's default directory` 23 } 24}
['json', 'form', 'text', 'multipart', 'stream']
.utf-8
.true
.application/x-javascript
multipart, stream
You can access raw request body by ctx.request.rawBody
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
69 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More