selective

Select and validate dynamic parameters via predefined options

npm install selective
3 downloads in the last week
3 downloads in the last month
var selective = require('selective');

var params = {
  name: 'bradley',
  email: 'bradley.griffiths@gmail.com',
  location: 'london',
  random: 'random param'
}

selective.select(params, ['#name', '#email', '#password', '*location', 'phone'], function(err, selected){
  console.log(err);  
  console.log(selected);
});
npm loves you