bit-message-box

1.1.0 • Public • Published

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')

Info message

Author

Vladimir Jovanović | Personal website | LinkedIn

Package Sidebar

Install

npm i bit-message-box

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

17.6 kB

Total Files

8

Last publish

Collaborators

  • vlasterx