whitelist

Express middleware for filtering json responses

Whitelist

Middlware for Express for filters json responses.

$ npm install whitelist
var express = require('express')
  , Whitelist = require('whitelist');
 
app = express.createServer();
 
app.get('/', Whitelist.middleware('name email'), function(reqresnext) {
  res.json({name: 'Moveline', email: 'support@moveline.com', id: '12345'});
});
$ npm test

Authors Christopher Garvis & Moveline

MIT