validatorjs номер
const validationRule = 'required|numeric';
florinrelea
const validationRule = 'required|numeric';
var validator = require('validator');
validator.isEmail('foo@bar.com'); //=> true