BorderStyle
BorderStyle selects one of the six built-in border character sets for Card. It is set via BorderSymbolStyle.style inside BorderOptions.
Type Definition
type BorderStyle =
"single" | "double" | "round" | "bold"
| "singleDouble" | "doubleSingle";
Border Presets
"single"— standard thin box-drawing characters:┌ ─ ┐ │ └ ┘"double"— double-line box-drawing:╔ ═ ╗ ║ ╚ ╝"round"— rounded corners:╭ ─ ╮ │ ╰ ╯"bold"— thick lines:┏ ━ ┓ ┃ ┗ ┛"singleDouble"— single horizontal, double vertical"doubleSingle"— double horizontal, single vertical
Usage
import { Card } from "ts-better-console";
const card = new Card("Hello", 30, {border: {}).render();symbols: { style: "round" },},
Want to support this project?
If you find ts-better-console useful and want to support its development, consider starring the GitHub repository or buying me a coffee! Your support helps me dedicate more time to improving the library and adding new features.
Want to contribute to this project?
Contributions are welcome! If you're interested in improving the library, fixing bugs, or adding new features, feel free to check out the GitHub repository and submit a pull request. Whether you're a seasoned developer or new to open source, your contributions can make a difference!