Releases: dnuzi/termglow
Termglow v1.0.0 🚀
Termglow v1.0.0 🚀
Release Date: December 17, 2025
Tag: v1.0.0
🎉 Overview
Welcome to the inaugural release of Termglow! This zero-dependency Node.js library transforms your terminal outputs into polished, glowing masterpieces. Inspired by modern CLI tools and developer workflows, Termglow brings ANSI magic, Unicode artistry, and procedural flair—without a single external NPM dep. Whether you're building NPM packages, scripts, or full CLIs, Termglow makes your console shine.
Created by DanuZz – Because terminals deserve to glow! 🌟
✨ What's New in v1.0.0
This release packs everything into a lightweight, self-contained package. Here's the full feature set:
Core Styling & Logging
- Styled Logs 💬: Pre-built types for
success(✓),error(✗),warning(⚠),info(ℹ) with colored icons and automatic glow animations. - Unicode Boxes 📦: Draw single/double-bordered containers with padding. Supports multi-line text—perfect for error summaries or prompts.
- Glow Text ✨: Unique pulsing effect using ANSI brightness cycles. One-shot or continuous mode (with interval control).
Animations & Progress
- Animated Loadings ⏳: Dot-spinning spinners with customizable messages and durations. Multi-phase support (e.g., "Fetching > Building > Done").
- Progress Bars 📊: Fillable bars with percentages, messages, and signal icons (▶ play, ⏸ pause, ⭐ start, 🔄 spin, ⏹ stop, ✅ complete).
Interactivity & Utils
- Interactive Prompts ❓: Async yes/no or free-text questions with styled arrows (▶). Handles user input seamlessly.
- Data Tables 🗂️: Unicode/ASCII grids for rows/columns. Auto-aligns widths, supports headers, borders, and colors—great for comparisons or stats.
- File Stats 📈: Quick table previews for file size, modification date, and MD5 hash.
Innovative Previews & Themes
- Procedural Image Previews 🖼️: Dep-free ASCII "pixelation" using file hash + block chars (█ ▓ ▒ ░). Generates unique art per image—includes size/hash stats. (e.g.,
glow.image('./photo.png')). - Themes 🎨: Switchable schemes ('default', 'neon' for bright cyan/magenta, 'dark' for muted tones). Auto-adapts to terminal width for scalability.
CLI Powerhouse
- Built-in CLI 🔧: Run without install via
npx termglow <command>. Supports:box "text": Instant boxed output.table: Example data grid.loading: Animated spinner.progress: Bar animation.glow "text": Pulsing demo.theme <name>: Apply theme.image <path>: Preview art.stats <path>: File table.help: Full usage.
Zero-Dep Magic
- No Dependencies ⚡: Pure Node.js (fs, readline, process, crypto). Runs on Node >=14, even in air-gapped envs.
- Pro Infra: Includes
.npmignorefor slim publishes,tsconfig.jsonfor TS readiness,.eslintrc.jsfor linting,.editorconfigfor consistency, and full examples/tests.
📦 Installation & Quick Start
npm install termglow # Library
npm install -g termglow # CLILib Example:
const glow = require('termglow');
glow.theme('neon');
glow.log('success', 'v1.0.0 is live! 🚀');
glow.box('Welcome to Termglow\nAll features included!', { padding: 2 });
await glow.prompt('Try a glow?');
glow.glowText('Shining bright! ✨');CLI Example:
npx termglow box "Hello v1.0.0!"
npx termglow image ./your-pic.png # ASCII magic🛠️ Developed By
DanuZz | Full-Stack Developer & Bot Maestro
🌍 Location: Ratnapura/Sabaragamuwa/Sri Lanka
🌱 Exploring: AI, Web3, Next.js, immersive UI/UX
🎯 Goal: Build code that inspires and captivates