Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lvce-editor/pretty-error
- Owner: lvce-editor
- License: mit
- Created: 2023-08-12T13:53:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-24T20:10:46.000Z (3 months ago)
- Last Synced: 2024-08-25T20:59:03.404Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)