node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

whitelist

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