raven-clean

1.0.2 • Public • Published

raven-clean Build Status

Generate clean raven-js filenames and stack traces by scrubbing cache busting parameters

Install

$ npm install --save raven-clean

Usage

var ravenClean = require('raven-clean')
var Raven = require('raven-js')
 
Raven.config(DSN, {
  dataCallback: ravenClean(/[0-9A-Fa-f]{12}_/)
})
.install()

raven-clean will strip the provided cache busting parameters from your file URLs and stack frames, allowing for consistent exception reporting and aggregation.

API

ravenClean(regex) -> function(string)

Returns a function that strips the matched parameter from the input string.

regex

Required
Type: regex

A regular expression matching your cache busting parameter, including any punctuation that should be stripped.

License

MIT © Ben Drucker

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i raven-clean

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • bendrucker