I'm using express-validator for making a Nodejs MongoDB application. I've installed the latest version of express-validator and Node but coming across "TypeError: expressValidator is not a function" as an error.
app.use(expressValidator({ errorFormatter: function(param, msg, value){ var namespace = param.split('.'), root = namespace.shift(), formParam = root; while(namespace.length){ formParam += '[' + namespace.shift() + ']'; } return { param: formParam, msg: msg, value: value }; } }));
requireexpress-validatorpackage? And, what'sexpressValidator?