1.1.0 • Published 3 years ago

bit-message-box v1.1.0

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

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

NameResult
logReturns white text with green border
infoReturns blue text with blue border
warnReturns yellow text with yellow border
errorReturns red text with red border
assertDisplays 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')

Info message

Author

Vladimir Jovanović | Personal website | LinkedIn