1.1.2 • Published 2 years ago

boxt v1.1.2

Weekly downloads
33
License
Unlicense
Repository
github
Last release
2 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

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.4.0

4 years ago

0.3.3

5 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago