Tiny version of cli-boxes (only the rounded box).
Currently, this library has zero configuration.™ Pass a string, get it wrapped in a rounded box (with 1 space of horizontal padding). As minimal as it gets. Zero dependencies!
Just 470 bytes with gzip! It could be smaller, but the code is cute and ANSI support adds a few pounds.
const bocks =console// ╭─────────────╮// │ hello world │// ╰─────────────╯
NOTE: Multi-line boxes are not yet supported! (PRs accepted)
Painting the box with your favorite ANSI color library is easy! Try it with chalk.
const chalk =let str =str = str// See a beautiful red box with blue text! 😍console