shout-error
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

/shout-error/

    Package Sidebar

    Install

    npm i shout-error

    Weekly Downloads

    3

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    3.52 kB

    Total Files

    7

    Last publish

    Collaborators

    • bukinoshita