# stack-parser

> Error stack parser.

Latest version **0.0.1** (published 2012-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install stack-parser
pnpm add stack-parser
yarn add stack-parser
bun add stack-parser
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-05-09 |
| First published | 2012-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Ivan Zhidkov |
| Maintainers | scaryzet |

## Links

- npm: https://www.npmjs.com/package/stack-parser
- Repository: https://github.com/scaryzet/node-stack-parser
- npm.io page: https://npm.io/package/stack-parser

## Recent versions

- 0.0.1 (latest) — 2012-05-09

## README

Error stack parser for node.js.

Installation
------------

```
npm install stack-parser
```

Example
-------

```javascript
var stackParser = require('stack-parser');

var items = stackParser.parse((new Error).stack);

items.forEach(function(item) {
	console.log(item.format());
});

// Use custom formatting.

items.forEach(function(item) {
	console.log(item.format('%what (%file, line: %line, column: %column)'));
});

// Use custom short formatting.

items.forEach(function(item) {
	console.log(item.format('%w (%f, line: %l, column: %c)'));
});

// Get a "current stack", synonym for "stackParser.parse((new Error).stack);".

items = stackParser.here();
```

License
-------
MIT

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