1.1.2 • Published 3 years ago

boxt v1.1.2

Weekly downloads
33
License
Unlicense
Repository
github
Last release
3 years ago

boxt npm.io npm.io

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,
		align: 'center',
		minWidth: 100
	}
);
optionmeaningvalues
titleA titleAnd string
themeborder style'single' (default), 'double', 'round'
colorborder coloursee chalk on NPM
paddingspace from borders to text
alignWhere to align the lines'center' (default), 'left'/'start', 'right'/'end'
minWidthMinimal widthany number or 'full' for full terminal width

Examples

optionsresult
theme: 'double'color: 'bgBlue'
theme: 'round'color: 'green'
padding: 10align: 'left'
title 'I am the title'.bold
1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago