makesure
var makesure = var validateUser = // Validates a object, with an intrusive attribute.
Features
- Registry.
- Async;
- DSL;
- Nested;
- Focus on attributes or general;
- Validate the entire object and return all the errors;
- You can use your own functions for validation, or use a the set of functions like of the validator package provides.
- tags;
- Built-in validations;
Roadmap
- Improve general validation to add general messages.
- General messages based on attributes validation
Installation
npm install --save makesure
or for client-side:
bower install --save makesure
Nested validation
You can use makesure validate nested function to validate a whole object and get all the errors at once.
var makesure = var validateAddress = var validateUser =
General validation
Sometimes, it's needed to validate the time of the operation or if a configuration flag is enabled. That validation is general for that object/operation.
var validateAction =
Built-in validations
This project is using the validator package as the built-in validations functions.
var validator = ; makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;makesure;