https://github.com/halfzebra/stack-trace-beautifier
👓 Decrypt errors from minified code
https://github.com/halfzebra/stack-trace-beautifier
error-monitoring sourcemaps stacktrace
Last synced: 7 months ago
JSON representation
👓 Decrypt errors from minified code
- Host: GitHub
- URL: https://github.com/halfzebra/stack-trace-beautifier
- Owner: halfzebra
- Created: 2018-11-19T21:39:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-16T18:02:30.000Z (about 7 years ago)
- Last Synced: 2025-03-13T14:24:03.672Z (11 months ago)
- Topics: error-monitoring, sourcemaps, stacktrace
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stack-trace-beautifier
A library for beautifying [stacktracejs/error-stack-parser](https://github.com/stacktracejs/error-stack-parser) stack-traces from minified client-side JavaScript using source-maps on the back-end.
Heavily inspired by [stacktracejs/stacktrace-gps](https://github.com/stacktracejs/stacktrace-gps)
## Usage
### Node.js
```js
const { createStackTraceBeautifier, stackTraceToString } = require('stack-trace-beautifier');
const stackTraceBeautifierInstance = createStackTraceBeautifier({
sourceMapsPath: './maps',
publicPath: '/',
cache: new Map()
});
stackTraceBeautifierInstance.beautifyStackTrace(stackFrames)
.then(stackTraceToString)
```