🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

crash-report-sender

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crash-report-sender

crash report sender

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
5
Created
Source

crash-report-sender

Build Status

send crashs to be analysed

install

npm install crash-report-sender --save

# dependency to inject
npm install request --save

usage

var CrashSender = require('crash-report-sender');
var crashSender = new CrashSender();
var libs = {request: request};

var error_to_send = new Error('THIS IS AN ERROR');

var options = {
  err: error_to_send,
  extra_values: {
    extra1: 'EXTRA VALUE 1',
    extra2: 'EXTRA VALUE 2'
  },
  libs: {requestFunction: require('request')},
  url: 'SOME_URL',
};

crashSender.send(options)
.then(function(result) {
  // OK
});

Test

gulp

Test (with integration test)

to run integration test you need set CRASH_REPORT_ENTRYPOINT env

e.g.:

CRASH_REPORT_ENTRYPOINT=http://api.io/report/uruwhswaB0z3NMBnIxlPV8xXcy+98FBV gulp

Publish

npm run deploy <version>

Keywords

azk

FAQs

Package last updated on 05 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