@cafeine-software/boxed-text
v1.0.2
Published
Display a text in an ascii box
Maintainers
Readme
Boxed Text
Display a text in an ascii box
Installation • Usage • Documentation • License • Contact • Support
Description
A lightweight utility to wrap text in customizable Unicode boxes. It automatically centers the text and can output directly to the console or return a formatted multi-line string.
Installation
npm i @cafeine-software/boxed-textUsage
import { boxedText ,BOX_STYLE} from "@cafeine-software/boxed-text";
// Display the boxed text with default style BOX_STYLE.LIGHT
boxedText(style);
// Get the boxed text as a string
const boxedText = boxedTest("BAR",BOX_STYLE.HEAVY,false)Documentation
Available style are :
- LIGHT
- HEAVY
- DOUBLE
- ROUNDED
- VERTICAL_LIGHT_&_HEAVY_TOP
- VERTICAL_HEAVY_&__LIGHT_TOP
- VERTICAL_LIGHT_&_DOUBLE_TOP
- VERTICAL_DOUBLE_&_LIGHT_TOP
License
Contact
Developed by Quentin Lamamy.
- Email: [email protected]
- GitHub: github.com/quentin-lamamy
- Cafeine Github: github.com/Cafeine-Software
