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: about 1 month 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-10-22T15:58:54.000Z (8 months ago)
- Last Synced: 2025-10-22T17:30:32.883Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 557 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
[](https://gitpod.io/#https://github.com/lvce-editor/pretty-error)