schm-validators
v0.0.2
Published
Collection of schm validators
Downloads
3
Readme
VALIDATORS
Collection of schm validators
Installation
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: '[email protected]'
});