crash-report-sender

0.5.0 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i crash-report-sender

Weekly Downloads

6

Version

0.5.0

License

Apache-2.0

Last publish

Collaborators

  • fearenales
  • gullitmiranda
  • marcusgadbem
  • nuxlli
  • saitodisse