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.
npm i @cafeine-software/boxed-textimport { 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)Available style are :
- LIGHT
- HEAVY
- DOUBLE
- ROUNDED
- VERTICAL_LIGHT_&_HEAVY_TOP
- VERTICAL_HEAVY_&__LIGHT_TOP
- VERTICAL_LIGHT_&_DOUBLE_TOP
- VERTICAL_DOUBLE_&_LIGHT_TOP
Developed by Quentin Lamamy.
- Email: contact@quentin-lamamy.fr
- GitHub: github.com/quentin-lamamy
- Cafeine Github: github.com/Cafeine-Software


