1.0.4 • Published 4 years ago

shout-error v1.0.4

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

shout-error Build Status

An opinionated error message

Install

$ yarn add shout-error

Usage

const { shoutError } = require('shout-error')

const error = new TypeError('Ops, something wrong happened')

shoutError(error)

Uses chalk, will return a error message with a nice color.

API

shoutError(message, label)

message

Type: string or instanceof Error or instanceof TypeError Required

label

Type: string Default: > Error!

Related

License

MIT © Bu Kinoshita