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

express-mung

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-mung - npm Package Compare versions

Comparing version 0.0.1-alpha to 0.0.2-alpha

6

package.json
{
"name": "express-mung",
"version": "0.0.1-alpha",
"description": "Prefer header for HTTP (RFC 7240)",
"version": "0.0.2-alpha",
"description": "Transform an express response (or make until no good)",
"main": "index.js",

@@ -15,3 +15,3 @@ "scripts": {

"mung",
"middlware",
"middleware",
"transform",

@@ -18,0 +18,0 @@ "response",

@@ -11,3 +11,3 @@ # express-mung [![Build Status](https://travis-ci.org/richardschneider/express-prefer.svg)](https://travis-ci.org/richardschneider/express-mung)

Then in your middleware
var mung = require('express-mung');

@@ -42,5 +42,5 @@

- `mung.json(fn)` transform the JSON body of the response. `fn` receives the JSON an object, the `req` and `res`. It returns the modified body.
- `mung.json(fn)` transform the JSON body of the response. `fn` receives the JSON as an object, the `req` and `res`. It returns the modified body.
- `mung.jsonAsync(fn)` transform the JSON body of the response. `fn` receives the JSON an object, the `req` and `res`. It returns a promise to a modified body.
- `mung.jsonAsync(fn)` transform the JSON body of the response. `fn` receives the JSON as an object, the `req` and `res`. It returns a promise to a modified body.

@@ -47,0 +47,0 @@ # License

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