purify

Validator functions for many types of input, intended for use with express

npm install purify
4 downloads in the last week
6 downloads in the last month

purify

var app = express(),
    purify = require('purify');

app.get('/:userId', function (req, res, next) {
    var userId = purify.positiveInteger(req.param('userId')),
        force = purify.positiveInteger(req.param('force'), true);
});
npm loves you