Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

catch-uncaught-exception

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catch-uncaught-exception

catch node uncaught exception,send email and exit

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

#UncaughtExceptionError Catch error and send email to you when UncaughtExceptionError happen. 捕获你未捕获的异常,然后发邮件告诉你具体的堆栈信息. 如果是在web 应用 未捕获的异常发生的时候,已经开辟的资源不仅不会被释放,而且服务器还在不知疲倦地接受新的用户请求。

Only sendEmail in Prodcution env

quick getstart


var UncaughtExceptionError = require('catch-uncaught-exception')('server name', 'email@qq.com');
a.b;  //b is not defined

##params


 * @param name your application name
 * @param to email resovle
 * @param needExit [options] default false , set true process will exit.

FAQs

Package last updated on 09 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc