whitelist

Express middleware for filtering json responses

npm install whitelist
5 downloads in the last week
10 downloads in the last month

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: 'support@moveline.com', id: '12345'});
});

Test

$ npm test

Authors Christopher Garvis & Moveline

License

MIT

npm loves you