node-errorcatcher
TypeScript icon, indicating that this package has built-in type declarations

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)

Package Sidebar

Install

npm i node-errorcatcher

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • andfaulkner