whitelist
v1.0.2
Published
Express middleware for filtering json responses
Downloads
107
Readme
node-whitelist
Middlware for Express for filters json responses.
Installation
$ npm install whitelist
Usage
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: '[email protected]', id: '12345'});
});
Test
$ npm test
Authors Christopher Garvis & Moveline
License
MIT