1.1.0 • Published 3 years ago

reuse-alerts v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm i reuse-alerts

Use this package for extra colors and symbols for your alert messages

Usage

const alert = require('reuse-alerts')

// You can choose between SUCCESS, INFO, WARNING, ERROR

alert() // Prints: ✖ ERROR You forgot to do something

alert({ type: 'success', msg: 'Completed!', name: 'Hey' }) // Prints: ✔ Hey Completed!

alert({ type: 'info', msg: 'This worked' }) // Prints: ℹ INFO This worked

alert({ type: 'warning', msg: "You didn't add something!" }) // Prints: ⚠ WARNING You didn't add something!

alert({ type: 'error', msg: 'Something went wrong' }) // Prints: ✖ ERROR Something went wrong

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago