Straints is a javascript object validator. Validation rules are declaratively defined in a JSON file.
Install.
npm install straints --save
Example usage.
;; let schema = "create_user": "constrain": "name": "exists" "email": "exists" "email" ; let instance = ; let target = "name": "Fred" "email": "fred@flintstone.com"; instance;
You can find full Straints documentation at the "homepage" link below.
Please use "feedback" to report any issues and "updates" for release info.
{ homepage } { updates } { feedback } { license } { versioning }
Happy Validating!