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(req, res, next) {
res.json({name: 'Moveline', email: 'support@moveline.com', id: '12345'});
});
$ npm test
Authors Christopher Garvis & Moveline
MIT