3.1.2 • Published 4 years ago
rbdnl v3.1.2
npx rbdnl
Get to know Rubydenial using your command line with Node.js
Install
To use this CLI run the following command:
npm i rbdnl
Usage
const alert = require('rbdnl');
alert({type: 'success', msg: 'All done !', name: 'SUCCESS'});
// Prints: √ SUCCESS All done !
alert();
// Prints: × ERROR You forgot to define all options.
alert({type: 'warning', msg: `You didn't add something !`, name: 'WARNING'});
// Prints: ‼ WARNING You didn't add something !
alert({type: 'info', msg: `Rubydenial is awesome !`, name: 'INFO'});
// Prints: ‼ INFO Rubydenial is awesome !
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 define all options.
> name
Type: string
Default: