Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kikobeats/beauty-error
Getting a beauty error. Oriented for well printed errors. Be beauty, no ugly.
https://github.com/Kikobeats/beauty-error
Last synced: 3 months ago
JSON representation
Getting a beauty error. Oriented for well printed errors. Be beauty, no ugly.
- Host: GitHub
- URL: https://github.com/Kikobeats/beauty-error
- Owner: Kikobeats
- License: mit
- Created: 2018-11-05T11:26:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T12:51:38.000Z (about 1 year ago)
- Last Synced: 2024-06-19T13:47:41.493Z (5 months ago)
- Language: JavaScript
- Size: 70.3 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cli - beauty-error - Getting a beauty error. Oriented for well printed errors. (Output)
README
# beauty-error
![Last version](https://img.shields.io/github/tag/Kikobeats/beauty-error.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/beauty-error.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/beauty-error)
[![NPM Status](https://img.shields.io/npm/dm/beauty-error.svg?style=flat-square)](https://www.npmjs.org/package/beauty-error)> Getting a beauty error. Oriented for well printed errors. Be beauty, no ugly.
## Install
```bash
$ npm install beauty-error --save
```## Usage
```js
const beautyError = require('beauty-error')beautyError(new Error('Something is wrong'))
```## Related
- [whoops ](https://github.com/Kikobeats/whoops) – It makes simple throw qualified errors.
- [hard-warnings](https://github.com/jamiebuilds/hard-warnings) – Throw an error when console.warn/error are called.## License
**beauty-error** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/beauty-error/blob/master/LICENSE.md) License.
Authored and maintained by Kiko Beats with help from [contributors](https://github.com/Kikobeats/beauty-error/contributors).> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/Kikobeats) · Twitter [@Kikobeats](https://twitter.com/Kikobeats)