npm.io
1.0.4 • Published 6 years ago

shout-error

Licence
MIT
Version
1.0.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
1

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!

License

MIT Bu Kinoshita

Keywords