create_user:
constrain:
email: exists, email
username: exists, string
password: exists, not.shorter!8
passwordConfirm:
- exists
- { test: equals, param: _.password }
NPM
npm install straints --save
Standalone App Bundles (via unpkg) straints.js straints.min.js