boxen
Create boxes in the terminal for CLI output and status messages.
Fit
Bundle (gzip)
12.0 kB
45.2 kB raw
Install size includes transitive dependencies. Bundle size is gzipped browser payload.
Freshness
The Problem
Terminal apps often need a way to highlight warnings, success messages, or notes without relying on plain text, but manually drawing borders and padding in the terminal is tedious and error-prone.
What It Does
boxen wraps text in a styled box with padding, margin, border styles, and colors. It makes CLI message formatting simple, so output looks polished with minimal code.
Installation
npm install boxenUsage Example
import boxen from "boxen";
const message = boxen("Deployment complete", {
padding: 1,
margin: 1,
borderStyle: "round",
borderColor: "green",
});
console.log(message);Related packages
Unified TypeScript SDK for building AI-powered apps — switch between 20+ LLM providers without rewriting code.
animejsGeneral JSLightweight JavaScript animation library with a tiny footprint and a powerful, expressive API.
AOSGeneral JSAn easy-to-use library that makes elements fade, slide, or zoom into view as the user scrolls down your page.
archiverGeneral JSStreaming interface for generating ZIP and TAR archives in Node.js — create compressed archives programmatically from files, directories, and buffers.
@formkit/auto-animateGeneral JS> Add smooth transitions to any element with a single line — zero-config animations for adds, removes, and moves.