1.0.7 • Published 3 years ago

@iamrokt/cli-alert v1.0.7

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

screenshot

Usage

const alert = require('cli-alert');

// Provide the type, msg, and name options
alert({type: 'info', msg: 'Operation completed!'});
alert({type: 'success', msg: 'All done!', name: 'DONE'});
alert({type: 'warning', msg: 'Deprecated API. See documentation!'});
alert({type: 'error', msg: 'Soemthing went wrong!'});

API

alert(options)

> options

Type: object Default: {}

You can specify the options below

> type

Type: string Default: error

> msg

Type: string Default: You forgot to set all the options!

> name

Type: string Default: '' (Empty string)

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago