restify-validation-helper
v0.0.12
Published
Collection of helper-methods for validation of input-fields with restify
Downloads
14
Readme
restify-validation-helper
Collection of helper-methods for easier input-validation in restify-apps.
validatorFlow
Allows to drop a validation-function as middlware which sends correct responses to the user.
errorFactory
Creates a valid restify-error with custom status-code and message.
uncaughtExceptionHandler
Logs the exception and sends a 500-error to the user.