Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-body

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-body

Body parser for Express [NodeJS]

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

Express body

[NodeJS] Body parser for Express

  • Read request body.
  • Parse cookies data in req.cookie
  • Parse json body in req.json
  • Parse form data in req.form

*This middleware (By design) does not validates Accept headers. If you need to, please use body-parser.

Install

npm install express-body

Use

var app = require('express')();

app.use(require('express-body'));

app.get('*', function(req, res, next){
    console.log(req.body);
    console.log(req.form);
    console.log(req.json);
});

app.listen(3000);

Keywords

FAQs

Package last updated on 23 Mar 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc