Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
body-parser-multidict
Advanced tools
Fork of body-parser with Werkzeug's MultiDict support for urlencoded forms
Fork of body-parser with Werkzeug's MultiDict support for urlencoded forms
We built querystring-multidict
for consistent typing when reading query strings (e.g. .get()
always returns a single string value whereas querystring
/qs
can return an array/object depending on user input). Additionally, we added .fetch()
to make throwing form validation errors easier.
This module can be installed via: npm install body-parser-multidict
Its usage is the same as body-parser
:
// Load in our dependencies
var express = require('express');
var bodyParserMultiDict = require('body-parser-multidict');
// Create a new app using our urlencoded parser
var app = express();
app.use(bodyParser.urlencoded());
// Handle requests
app.use(function (req, res) {
// Example request: `POST foo=bar&foo=baz`
// First received value under key
req.body.get('foo'); // 'bar'
// Array of values received under key
req.body.getArray('foo');// ['bar', 'baz']
});
Documentation is the same as body-parser except req.body
is a MultiDict
. See querystring-multidict
for MultiDict
documentation:
https://github.com/twolfson/querystring-multidict/tree/1.1.0#multidict
FAQs
Fork of body-parser with Werkzeug's MultiDict support for urlencoded forms
We found that body-parser-multidict demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.