Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lvce-editor/pretty-error

Create user friendly error messages and code frames for errors.
https://github.com/lvce-editor/pretty-error

Last synced: 3 days ago
JSON representation

Create user friendly error messages and code frames for errors.

Awesome Lists containing this project

README

        

# Pretty Error

Create user friendly error messages and code frames for errors.

## Install

```sh
npm install @lvce-editor/pretty-error
```

## Usage

```js
import * as PrettyError from '@lvce-editor/pretty-error'

const error = new TypeError(`x is not a function`)

const prettyError = PrettyError.prepare(error)
```

## Gitpod

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/lvce-editor/pretty-error)