conformation

0.13.0 • Public • Published

Conformation

Kinda like JOI, but with promises and more pluggable.

Example

import Schema from 'conformation';
 
let schema = Schema.object().keys({
  foo: Schema.string().required(),
  bar: Schema.number(),
  date: Schema.moment({format: 'DD/MM/YYYY'})
});
 
schema.validate({foo: 'hello', bar: 5, date: '14/04/2016'});

TODO...

/conformation/

    Package Sidebar

    Install

    npm i conformation

    Weekly Downloads

    3

    Version

    0.13.0

    License

    ISC

    Last publish

    Collaborators

    • stewartml