Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

node-errorcatcher

0.0.2 • Public • Published

errorcatcher

Top-level error handling for NodeJS

  • Automatically catches missed errors.

  • "Prettifies" all error outputs.

  • Used via a simple 'include' and run (operates via side effects):

    import { GlobalNodeErrorHandlersSetup } from 'errorcatcher'; GlobalNodeErrorHandlersSetup(); // All errors thrown in the app will now display as clean "PrettyErrors"

prettyErrorFactory

  • prettyErrorFactory allows creation of your own PrettyError objects whenever needed.

    import { prettyErrorFactory } from 'errorcatcher';

  • (You probably won't need it)

Install

npm i node-errorcatcher

DownloadsWeekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • avatar