UNPKG

beauty-error

Version:

Getting a beauty error. Oriented for well printed errors. Be beauty, no ugly.

34 lines (21 loc) 1.3 kB
# 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.<br> 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) · X [@Kikobeats](https://x.com/Kikobeats)