Skip to content

Around25/exitlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExitLog

A small package that makes handling exit exceptions easier.

Usage

Install the package using the following command:

npm install exitlog --save

Add this line to into the main script of your application:

require('exitlog')();
// build your application and never worry about not seeing all exceptions again

You can also add a custom handle:

require('exitlog')({
  handler: function (err, exit){
    // process the exception message... maybe save it somewhere
    // call the function to exit the process
    exit();
  }
});
// build your application and never worry about not seeing all exceptions again

About

Log error before exiting the current node process

Resources

License

Stars

Watchers

Forks

Packages

No packages published