schm-validators

0.0.2 • Public • Published

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: 'testUser@example.com'
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i schm-validators

      Weekly Downloads

      1

      Version

      0.0.2

      License

      MIT

      Unpacked Size

      2.21 kB

      Total Files

      9

      Last publish

      Collaborators

      • kalvin