Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CLI Libraries Reference

Philosophy: "It's for me mostly, so I like awesome"

Since we're using Bun anyway, let's make this CLI absolutely delightful to use.


Installed Libraries

Core UI/UX

  • chalk - Terminal colors and styling
  • ora - Elegant terminal spinners
  • listr2 - Multi-step task lists with progress
  • boxen - Beautiful boxes around text
  • cli-table3 - Terminal tables
  • enquirer - Interactive prompts

Framework & Utilities

Optional


Quick Examples

Colored Output

import chalk from 'chalk';
console.log(chalk.green('✓ Success!'));

Spinner

import ora from 'ora';
const spinner = ora('Deploying...').start();
await deploy();
spinner.succeed('Deployed!');

Task List

import { Listr } from 'listr2';
const tasks = new Listr([
  { title: 'Build', task: async () => await build() },
  { title: 'Deploy', task: async () => await deploy() }
]);
await tasks.run();

Success Box

import boxen from 'boxen';
console.log(boxen('Deploy Successful!', {
  padding: 1,
  borderColor: 'green'
}));

Security Notes

All libraries are:

  • ✅ Actively maintained
  • ✅ Millions of downloads per week
  • ✅ Trusted maintainers
  • ✅ Minimal dependencies

Before updating: Always run bun pm audit and check package reputation.