This is a series of libraries and utilities for building Command-line-interfaces aka CLI using Node.js and ecosystem around it. Similar utilities/helpers may be available for other languages but, these series is focused on JavaScript and its friends.
You can check all articles under CLI Build Tool
tag.
If you are building a CLI and need to present some good output wrapped in box! Yes, square box, βboxenβ is the tool for you. Just like you had seen boxes around output of update-notifier
. It makes the CLI app more appealing.
It can present your application output in boxes with various styles like βdouble dashedβ, βrounded cornersβ along with some βmarginβ and βpaddingβ options.
Boxen has a very easy to follow, simple to use API. Here is a code example:
const boxen = require('boxen');
console.log(boxen('unicorn', { padding: 1 }));
/*
βββββββββββββββ
β β
β unicorn β
β β
βββββββββββββββ
*/
console.log(boxen('unicorn', { padding: 1, margin: 1, borderStyle: 'double' }));
/*
βββββββββββββββ
β β
β unicorn β
β β
βββββββββββββββ
*/
You can check out official repo for all usage details.
Github Repo: boxen