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

electron-local-crash-reporter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-local-crash-reporter

Simplifies running mini-breakpad-server in local development, alongside your electron app.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

electron-local-crash-reporter

The goal of this module is to simplify running mini-breakpad-server in local development. Basically, it makes Electron's crashReporter API work easily out of the box for you, so you don't have to bother running mini-breakpad-server in a separate terminal window, download the symbols and move them to the right folder, etc.

Add this module as a dev dependency and only run it in local development, and it will:

  • Manage starting/stopping the breakpad server automatically
  • Download the correct Electron symbols (and seamlessly update them when you change Electron versions)
  • Minimal impact on app start time

This module is helpful if you do not have a remote crash report server running yet, or do not want to send crash reports created in local development to it.

Install

npm install --save-dev electron-local-crash-reporter

Example

All you really do is require('electron-local-crash-reporter').start();, but here's a fuller example:

// this is your main process
const { app, BrowserWindow } = require('electron');
let mainWindow = null;

// only run it in local development (check for this however you like)
if(process.execPath.indexOf('electron') > -1) {
  // it handles shutting itself down automatically
  require('electron-local-crash-reporter').start();
}

app.on('ready', function() {
  mainWindow = new BrowserWindow({ /* ... */ });
});

Keywords

FAQs

Package last updated on 26 Jun 2017

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