Comments (17)
i.am.machine :DDD
from body-parser.
xml
from body-parser.
I think this lib is pretty easy to understand. IMO they should just fork this lib if they wanna do more stuff. Most of the logic should be in separate libs anyways
from body-parser.
I think it would be better to have the interface and people have parsing libs than lots of body-parser forks.
from body-parser.
I think it would be better to have the interface
This module should be the interface. json
and urlencoded
should be the separable libs that use this module ;)
from body-parser.
You guys are just adding more responsibility to your plate hah
from body-parser.
Yeah, that's the issue, may be too much to be worthwhile to support.
from body-parser.
This module should be the interface. json and urlencoded should be the separable libs that use this module ;)
I can tackle this if it's helpful
from body-parser.
This is actually nearly done, as it was intended for the goal of bringing body-parser back into express core.
Out of curiosity, what parser were you planning to build that we don't have already :)?
from body-parser.
Out of curiosity, what parser were you planning to build that we don't have already :)?
good question
from body-parser.
lol
from body-parser.
xml
lol. Somehow I knew that was the answer ;) Currently the best you can do is to use bodyParser.text
and then feed the text into a XML parser.
from body-parser.
The reason why I had a feeling is because I use this module to parse XML all the time, but of course using text + parser requires the request body to buffer up instead of feeding it to an incremental parser (CSV is another common one, which I also use!).
This new stuff will actually be out sooner rather than later since I should not be distracted with express core.
from body-parser.
Out of curiosity, what parser were you planning to build that we don't have already :)?
JSON5? I use that in a few APIs, because it's easier to debug such api with a curl (and b/w compatibility with json is perfect). Even created express-json5 based on bodyParser.
So this use-case is more real than it seems.
from body-parser.
Even created express-json5 based on bodyParser.
Though it looks like as body-parser is currently, it can be significantly simplified by wrapping bodyParser.text
;)
from body-parser.
@rlidwka or, looking at your code now, you could technically wrap bodyParser.json
and if it errors, check err.body
and parse that with the json5 parser :) I'm not actually saying this invalids the issue at had, here, because it's still valid and I'm working on it, haha.
from body-parser.
How do you build may I ask?
from body-parser.
Related Issues (20)
- HTTP:413 Request Entity Too Large HOT 5
- Conform with express-validator on parameter representation
- bodyParser is deprecated, error HOT 1
- bodyparser.json() shown as deprecated? (question) HOT 7
- pass options to qs thru urlencoded? HOT 4
- Cannot catch SyntaxError when user provides invalid JSON in body and content-type: application/json HOT 3
- Support for content-encoding: deflate raw HOT 7
- req.body could not be accessed when send as form data, but works fine with JSON HOT 3
- Pass custom parameters to `qs` HOT 3
- Update iconv-lite to latest 0.6.3 HOT 7
- support for ndjson
- Regular Expression Denial of Service (ReDoS) in [email protected] HOT 3
- Update `debug` dependency (memory leak leading to vulnerability) HOT 1
- api calls made with invalid json HOT 5
- Add support for removing body parser limit HOT 8
- BadRequestError: request size did not match content length HOT 7
- How to handle content-type mismatch? HOT 1
- CVE-2017-20165 - debug HOT 2
- Issue HOT 1
- Debug package version in body parser showing security vulnerability HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from body-parser.