get-stack-trace
Version:
Stack traces as an array of stack frames with source maps support.
21 lines (14 loc) • 681 B
Markdown
# 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);
```