npm.io
3.1.2 • Published 5 years agoCLI

rbdnl

Licence
MIT
Version
3.1.2
Deps
3
Size
29 kB
Vulns
0
Weekly
0

rbdnl screenshot

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: ``

Keywords