npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

restify-error-helper

0.0.5 • Public • Published

restify-validation-helper

Collection of helper-methods for easier input-validation in restify-apps.

errorHandler

Handles thrown exceptions of all types and wraps them in a restify-error

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-error-helper

Downloadsweekly downloads

5

version

0.0.5

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability