express-mung
Advanced tools
Comparing version 0.0.1-alpha to 0.0.2-alpha
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6301