Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eldoy/bparse
HTTP Request Body Parser for Node.js
https://github.com/eldoy/bparse
Last synced: 6 days ago
JSON representation
HTTP Request Body Parser for Node.js
- Host: GitHub
- URL: https://github.com/eldoy/bparse
- Owner: eldoy
- License: mit
- Created: 2018-09-24T22:45:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-01T22:57:11.000Z (2 months ago)
- Last Synced: 2024-11-07T08:45:56.055Z (8 days ago)
- Language: JavaScript
- Homepage:
- Size: 771 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP Request Body Parser for Node.js
Based on formidable, this body parser will give you parameters and files posted to your Node.js server.
### INSTALLATION
```npm i bparse``` or ```yarn add bparse```### USAGE
On your Node.js server:
```javascript
const bparse = require('bparse')// With default options
await bparse(req)// With options, same as in node formidable
const options = { maxFileSize: 20000 * 1024 * 1024 }
await bparse(req, options)// Request parameters
req.params// Request uploaded files
req.files
```
Enjoy! MIT Licensed.