https://github.com/gajus/get-stack-trace
Stack traces as an array of stack frames with source maps support.
https://github.com/gajus/get-stack-trace
source-map stack-trace
Last synced: 8 months ago
JSON representation
Stack traces as an array of stack frames with source maps support.
- Host: GitHub
- URL: https://github.com/gajus/get-stack-trace
- Owner: gajus
- License: other
- Created: 2018-08-16T22:06:46.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T02:12:52.000Z (over 2 years ago)
- Last Synced: 2025-07-03T17:05:36.223Z (9 months ago)
- Topics: source-map, stack-trace
- Language: TypeScript
- Homepage:
- Size: 527 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-stack-trace
[](https://www.npmjs.org/package/get-stack-trace)
[](https://github.com/gajus/canonical)
[](https://twitter.com/kuizinas)
Stack traces as an array of stack frames with source maps support.
## Usage
```js
import {
getStackTrace,
serializeStackTrace,
} from 'get-stack-trace';
const stackTrace = getStackTrace();
serializeStackTrace('Error', 'Hello, World!', stackTrace);
```