Boxed console messages for NodeJS terminal
npm install bit-message-boxJust a simple plugin that adds border around your console messages in NodeJS terminal.
For more customization options, consider using boxen and chalk plugins.
Install the plugin:
```
npm install --save-dev bit-message-box
Add it to your script:
`js`
const msg = require('bit-message-box')
| 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 |
`js`
msg.info('This is just an info message')
`js
let myCondition = 1 > 2
msg.assert(myCondition, 'Message is displayed if the condition is false')
``
Vladimir Jovanović | Personal website | LinkedIn