Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

boxt

0.4.0 • Public • Published

boxt

boxt

boxt

Use

npm i -S boxt

const boxt = require('boxt');
 
boxt(`I have a message
It might be multilined`);

Options

boxt(
    'Guests, like fish, begin to smell after three days.',
    {
        color: 'green',
        theme: 'round',
        padding: 4,
    }
);
option meaning values
title A title And string
theme border style 'single' (default), 'double', 'round'
color border colour see colors on NPM
padding space from borders to text
align Where to align the lines 'center' (default), 'left'/'start', 'right'/'end'

Examples

options result
theme: 'double'
color: 'bgBlue'
example
theme: 'round'
color: 'green'
example
padding: 10
align: 'left'
example
title 'I am the title'.bold example

Keywords

none

Install

npm i boxt

DownloadsWeekly Downloads

16

Version

0.4.0

License

MIT

Unpacked Size

8.99 kB

Total Files

6

Last publish

Collaborators

  • avatar