Gathering detailed insights and metrics for @env0/http-json-body-parser
Gathering detailed insights and metrics for @env0/http-json-body-parser
npm install @env0/http-json-body-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68
Supply Chain
96.8
Quality
82.2
Maintenance
100
Vulnerability
100
License
JavaScript (89.48%)
TypeScript (5.78%)
CSS (4.71%)
Shell (0.03%)
Total Downloads
4,606
Last Day
1
Last Week
5
Last Month
12
Last Year
136
1,380 Commits
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.0-alpha.29-reviver-0.2
Package Id
@env0/http-json-body-parser@1.0.0-alpha.29-reviver-0.2
Unpacked Size
8.67 kB
Size
3.37 kB
File Count
8
NPM Version
6.7.0
Node Version
11.12.0
Cumulative downloads
Total Downloads
Last day
-66.7%
1
Compared to previous day
Last week
66.7%
5
Compared to previous week
Last month
140%
12
Compared to previous month
Last year
-15%
136
Compared to previous year
3
1
HTTP json body parser middleware for the middy framework, the stylish Node.js middleware engine for AWS Lambda
This middleware automatically parses HTTP requests with a JSON body and converts the body into an
object. Also handles gracefully broken JSON as UnprocessableEntity (422 errors)
if used in combination with httpErrorHandler
.
It can also be used in combination with validator as a prior step to normalize the event body input as an object so that the content can be validated.
To install this middleware you can use NPM:
1npm install --save @middy/http-json-body-parser
This middleware does not have any option
1const middy = require('@middy/core') 2const httpJsonBodyParser = require('@middy/http-json-body-parser') 3 4const handler = middy((event, context, cb) => { 5 cb(null, {}) 6}) 7 8handler.use(httpJsonBodyParser()) 9 10// invokes the handler 11const event = { 12 headers: { 13 'Content-Type': 'application/json' 14 }, 15 body: JSON.stringify({foo: 'bar'}) 16} 17handler(event, {}, (_, body) => { 18 expect(body).toEqual({foo: 'bar'}) 19})
For more documentation and examples, refers to the main Middy monorepo on GitHub or Middy official website.
Everyone is very welcome to contribute to this repository. Feel free to raise issues or to submit Pull Requests.
Licensed under MIT License. Copyright (c) 2017-2018 Luciano Mammino and the Middy team.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
44 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
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