@baehaqirafly3/cli-kit
v1.0.1
Published
The ultimate orchestration toolkit for building interactive, modern CLI applications.
Maintainers
Readme
🛠️ @baehaqirafly3/cli-kit
The Ultimate Orchestration Toolkit for Modern Node.js CLIs
🎨 ASCII Shadow Banner
██╗███████╗ ██████╗██╗ ██╗ ██╗ ██╗██╗████████╗
██║██╔════╝ ██╔════╝██║ ██║ ██║ ██╔╝██║╚══██╔══╝
██║███████╗ ██║ ██║ ██║ █████╔╝ ██║ ██║
██ ██║╚════██║ ██║ ██║ ██║ ██╔═██╗ ██║ ██║
╚█████╔╝███████║ ╚██████╗███████╗██║ ██║ ██╗██║ ██║
╚════╝ ╚══════╝ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝🚀 Why @baehaqirafly3/cli-kit?
Listen, building a CLI shouldn't require you to memorize the quirks of 5 different libraries. cli-kit is not just a wrapper; it's an opinionated orchestration layer designed for developers who demand perfection and speed.
- 🎯 Interactive Prompts: Text, passwords, confirms, lists, and autocomplete.
- 🌀 Smart Spinners: Auto-handling async success/fail states.
- 📊 Progress Bars: Single and Multi-bar support with beautiful formatting.
- 🎨 Semantic Colors: Beyond basic chalk, with built-in success/error/warn helpers.
- 📋 Elegant Tables: Pre-styled, border-customized data grids.
- 🖼️ ASCII Banners: Built-in FIGlet support with the stunning
ANSI Shadowfont.
📦 Installation
npm install @baehaqirafly3/cli-kit⚡ Quick Start
import { prompt, spinner, color, banner } from '@baehaqirafly3/cli-kit';
// 1. Show off the banner
banner.print('My App');
// 2. Ask the user
const name = await prompt.text(color.info('What is your name?'));
// 3. Do some heavy lifting with an auto-managed spinner
await spinner.run('Processing data', async () => {
await new Promise(resolve => setTimeout(resolve, 2000));
});
console.log(color.success(`Hello, ${name}! Welcome to the future of CLIs.`));🧠 Philosophy (Read This)
Don't mistake abstraction for architecture.
cli-kit doesn't force you into a rigid MVC framework for a simple script. It gives you the sharpest tools in the shed, pre-sharpened and aligned, so you can write code that reads like plain English.
🔗 Links & Resources
- NPM Package: @baehaqirafly3/cli-kit
- Github Repository: js-cli-kit
- Author NPM Profile: baehaqirafly3
📜 License
Distributed under the MIT License. See LICENSE for more information.
