Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Bitersen/bit-message-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Boxed console messages in NodeJS terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published