# get-stack-trace

> Stack traces as an array of stack frames with source maps support.

Latest version **3.1.1** (published 2023-09-26) · 0 weekly downloads

## Install

```sh
npm install get-stack-trace
pnpm add get-stack-trace
yarn add get-stack-trace
bun add get-stack-trace
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.1 |
| Published | 2023-09-26 |
| First published | 2018-08-16 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18.0 |
| Dependencies | 1 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Gajus Kuizinas |
| Maintainers | gajus |
| Keywords | stack trace |

## Links

- npm: https://www.npmjs.com/package/get-stack-trace
- Repository: https://github.com/gajus/get-stack-trace
- Homepage: https://github.com/gajus/get-stack-trace#readme
- Issues: https://github.com/gajus/get-stack-trace/issues
- npm.io page: https://npm.io/package/get-stack-trace

## Dependencies (1)

- [stacktrace-parser](https://npm.io/package/stacktrace-parser.md) ^0.1.10

## Recent versions

- 3.1.1 (latest) — 2023-09-26
- 3.1.0 — 2023-09-26
- 3.0.3 — 2023-09-26
- 3.0.2 — 2023-09-26
- 3.0.1 — 2023-09-26
- 3.0.0 — 2023-09-26
- 2.1.1 — 2021-06-28
- 2.1.0 — 2021-06-28
- 2.0.3 — 2019-11-21
- 2.0.1 — 2018-10-25
- 2.0.0 — 2018-10-25
- 1.0.1 — 2018-08-16
- 1.0.0 — 2018-08-16

## README

# get-stack-trace

[![NPM version](http://img.shields.io/npm/v/get-stack-trace.svg?style=flat-square)](https://www.npmjs.org/package/get-stack-trace)
[![Canonical Code Style](https://img.shields.io/badge/code%20style-canonical-blue.svg?style=flat-square)](https://github.com/gajus/canonical)
[![Twitter Follow](https://img.shields.io/twitter/follow/kuizinas.svg?style=social&label=Follow)](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);
```

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