node-chat-bubble

1.0.3 • Public • Published

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:

Parameter Type Description
boxWidth number width of the box, default: 30
boxType string single, double, round(default), single-double, double-single, classic
spikePosition number position of spike from left, default: 10
spikeDirection string 'right' or 'left', default is 'right'

Contributing

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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i node-chat-bubble

    Weekly Downloads

    13

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.46 kB

    Total Files

    5

    Last publish

    Collaborators

    • gauravchl