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...

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.13.0
    0
    • latest

Version History

Package Sidebar

Install

npm i conformation

Weekly Downloads

1

Version

0.13.0

License

ISC

Last publish

Collaborators

  • stewartml