1 var validator = require('./')
3 var validate = validator({
13 console.log('should be valid', validate({hello: 'world'}))
14 console.log('should not be valid', validate({}))
16 // get the last error message by checking validate.error
17 // the following will print "data.hello is required"
18 console.log('the errors were:', validate.errors)