New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bparse

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bparse

HTTP request body parser

latest
Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
40
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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:

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.

FAQs

Package last updated on 01 Sep 2024

Did you know?

Socket

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.

Install

Related posts