Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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.

install

npm i restify-validation-helper

Downloadsweekly downloads

0

version

0.0.12

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability