Home

Awesome

chat-bubble

A chat bubble for your terminal.

Usage:

const chatBubble = require('node-chat-bubble');
const message = 'Hello World';
console.log(chatBubble.get(message));

const options = { boxWidth: 52 };
console.log(chatBubble.get(message, options))

Options:

ParameterTypeDescription
boxWidthnumberwidth of the box, default: 30
boxTypestringsingle, double, round(default), single-double, double-single, classic
spikePositionnumberposition of spike from left, default: 10
spikeDirectionstring'right' or 'left', default is 'right'

Contributing

Please feel free to submit any bugs or suggestions as issues. Pull requests are welcome.