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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.12
    1
    • latest

Version History

Package Sidebar

Install

npm i restify-validation-helper

Weekly Downloads

17

Version

0.0.12

License

none

Last publish

Collaborators

  • johannes.reuter