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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i node-errorcatcher

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • andfaulkner