An open API service indexing awesome lists of open source software.

https://github.com/lsongdev/superror

🚨Error stack parser and printer
https://github.com/lsongdev/superror

error-stack error-stack-trace

Last synced: 7 months ago
JSON representation

🚨Error stack parser and printer

Awesome Lists containing this project

README

          

## superror

> error stack parser and printer

[![superror](https://img.shields.io/npm/v/superror.svg)](https://npmjs.org/superror)
[![Build Status](https://travis-ci.org/song940/superror.svg?branch=master)](https://travis-ci.org/song940/superror)

### Installation

```bash
$ npm install superror --save
```

### Example

```js
const { parseStackTrace } = require('superror');

const err = new Error('BOOM!');

const stack = parseStackTrace(err.stack);

console.log(stack);

```

![image](https://user-images.githubusercontent.com/1323768/200833943-e76e7dfc-f6b2-4ace-af83-c7ed5e4315c8.png)

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### MIT

This work is licensed under the [MIT license](./LICENSE).

---