VALIDATORS
schm validators
Collection ofInstallation
npm install validators
or yarn add validators
Usage
const schema = require('schm');
const { email } = require('schm-validators');
const testEmail = schema({
user: String,
email: {
type: String,
email: true,
}
}, email());
testEmail.validate({
user: 'testUser',
email: 'testUser@example.com'
});