A Node.js library for creating customizable boxes and borders around terminal output.
Boxen is a Node.js library that creates customizable boxes and borders around text in the terminal. It solves the problem of plain, unstructured terminal output by allowing developers to add visual containers that improve readability and presentation for command-line applications.
Node.js developers building command-line interfaces (CLIs), tools, or scripts who want to enhance terminal output with structured, visually appealing boxes.
Developers choose Boxen for its extensive customization options, including multiple border styles, colors, and layout controls, all through a simple API that integrates seamlessly into existing Node.js projects.
Create boxes in the terminal
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers multiple predefined border styles like single, double, round, and custom character support, enabling creative terminal aesthetics without manual ASCII art.
Provides fine-grained options for padding, margin, width, height, and float positioning, allowing developers to tailor box dimensions and placement to their needs.
Features a minimal API with clear examples, making it easy to add boxed text to any Node.js project with just a few lines of code.
Supports border and background colors (including hex values) and title alignment, enhancing visual emphasis and organization in terminal output.
Setting fixed width or height can cause broken rendering or content cropping on narrow terminals, as noted in the documentation's warnings about overflow handling.
Visual effects like colors and special border styles (e.g., arrow) may not render consistently across all terminal emulators, especially those with limited Unicode support.
The library is designed for individual boxes, making it cumbersome to create complex, nested layouts or interactive elements without additional manual coding.