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 months 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 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T22:54:17.000Z (7 months ago)
- Last Synced: 2025-01-11T01:52:08.397Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
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)