validatorbase
v0.1.3
Published
lightweight validation middleware for express
Downloads
4
Readme
validatorbase
validatorbase provides a lightweight validation middleware for express.
The user simply provides a rudimentary schema defining which parameters are expected for each call as well as a map that defines which function shall be used to check a parameter with a given name. This allows to do all the validation without your actual APIs noticing as long as you watch the naming of your parameters. Especially for simpler systems it thus provides a much more lightweight solution than more complex frameworks like express-validator.
It is also possible to hook your custom logging framework to keep track of incoming http requests and occuring validation errors.
get started
Have a look at the test case to understand how to use validatorbase.
notes
Currently still under heavy development.