Skip to content

moveline/whitelist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whitelist Build Status

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

License

MIT

About

Express middleware for filtering json responses.

Resources

License

Stars

Watchers

Forks

Packages

No packages published