bit-message-box
v1.1.0
Published
Boxed console messages for NodeJS terminal
Downloads
31
Readme
bit-message-box
Just a simple plugin that adds border around your console messages in NodeJS terminal.
For more customization options, consider using boxen and chalk plugins.
Installation
Install the plugin:
npm install --save-dev bit-message-box
Add it to your script:
const msg = require('bit-message-box')
Methods
| Name | Result |
| -------- | -------------------------------------------- |
| log
| Returns white text with green border |
| info
| Returns blue text with blue border |
| warn
| Returns yellow text with yellow border |
| error
| Returns red text with red border |
| assert
| Displays message if the condition is false
|
Example
msg.info('This is just an info message')
let myCondition = 1 > 2
msg.assert(myCondition, 'Message is displayed if the condition is false')
Author
Vladimir Jovanović | Personal website | LinkedIn