Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 771 Bytes

readme.md

File metadata and controls

26 lines (17 loc) · 771 Bytes

Micro-library for handling uncaught exceptions for node

Installation

$ npm install tiny-crash-reporter

Usage

TinyCrashReporter consists of a single API call with a single boolean option. Simple require the module into your code and execute the modules function.

const TinyCrashReporter = require('tiny-crash-reporter');

TinyCrashReporter();

This initialises the module and will start it handling your uncaught exceptions.

TinyCrashReporter accepts one argument: stopExcecution: Tells the module to end the process when an exception is handled. Default: true

Examples

The libraries functionality is demonstrated in the example.js file found in the node_modules folder