# sentry-stacktrace-fixer

> fixes sourcemap stacktrace filenames for sentry events on the client side

Latest version **1.0.0** (published 2020-01-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install sentry-stacktrace-fixer
pnpm add sentry-stacktrace-fixer
yarn add sentry-stacktrace-fixer
bun add sentry-stacktrace-fixer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-01-28 |
| First published | 2020-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jharris4 |
| Maintainers | jharris4 |

## Links

- npm: https://www.npmjs.com/package/sentry-stacktrace-fixer
- Repository: https://github.com/jharris4/sentry-stacktrace-fixer
- npm.io page: https://npm.io/package/sentry-stacktrace-fixer

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.8.3

## Recent versions

- 1.0.0 (latest) — 2020-01-28

## README

### Installation

`yarn add sentry-stacktrace-fixer`

### Usage

```
import * as Sentry from '@sentry/browser';

import { stripStacktraceFilenamesBeforePrefix } from 'sentry-stacktrace-fixer';

const beforeSend = stripStacktraceFilenamesBeforePrefix(BUNDLE_PREFIX);

if (process.env.NODE_ENV === 'production') {
    Sentry.init({
        dsn: SENTRY_KEY,
        release: PRODUCT + '@' + VERSION,
        beforeSend
    });
}
```

---
_Source: https://npm.io/package/sentry-stacktrace-fixer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
