restify-validation-helper

0.0.12 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i restify-validation-helper

Weekly Downloads

0

Version

0.0.12

License

none

Last publish

Collaborators

  • johannes.reuter