K
Version - 1.0.2

Beautiful Console Logs
in your
Terminal

A lightweight logging library with colors, icons, timestamps, and block banners. Make your console output beautiful and informative.

npm i heco-log
Features

Why use heco log?

Everything you need for beautiful console logging in one simple package.

Colorful Output

7 built-in colors plus bold styling. Make your logs stand out with vibrant, readable colors.

Smart Logging

Built-in log levels with icons and timestamps. Info, success, error, warn, and debug methods.

Block Banners

Create beautiful bordered message blocks with custom titles, colors, and padding.

Table Display

Format arrays and objects into beautiful ASCII tables with customizable colors.

Zero Dependencies

Lightweight library with no external dependencies. Fast installation and minimal footprint.

TypeScript Ready

Full TypeScript support with proper type definitions and IntelliSense.

Quick Start

Get up and running in seconds

1Installation

Install heco-log using your preferred package manager. Choose from npm, yarn, or pnpm.

Install heco log

2Basic Color Usage

Import heco and start using colors in your console output. Each color method returns a formatted string.

Color Methods
Console Output
heco-log colorful output example

3Custom Colors

Use HEX or RGB value to style your console output with heco's customColor method.

Custom Colors Example
Console Output
heco-log colorful output example

4Structured Logging

Use built-in log levels with automatic timestamps and icons for professional console output.

Log Levels with Icons & Timestamps
Console Output
heco-log colorful output example

5Simple Banner

Create a simple banner with a title and message.

Simple Banner
Console Output
heco-log colorful output example

6Block Banners

Create beautiful bordered message blocks for important announcements and status updates.

Beautiful Block Banners
Console Output
heco-log colorful output example

7Table Display

Display arrays and objects as beautiful ASCII tables with customizable colors and formatting.

Beautiful ASCII Tables
Console Output
heco-log colorful output example

8Traces

Visualize complex processes with nested trace logs for better debugging and clarity.

Trace Example
Console Output
heco-log colorful output example

9Step Logs (Async)

Show progress for each step in an async workflow, with error and warning handling.

Async Step Logs
Console Output
heco-log colorful output example

10Spinner (Async)

Show a spinner while running an async task.

Async Spinner
Console Output
heco-log colorful output example

11Progress Bar

Display a progress bar for iterative or long-running tasks.

Progress Bar Example
Console Output
heco-log colorful output example

12Prompts

Interactively prompt users for input, confirmations, and selections in the CLI.

Prompt Examples
Console Output
heco-log colorful output example

13Advanced Text Styling

Style your console output with fine-grained control using `heco.text()` and chainable `.with()` methods. You can use both object-based and chainable styles for maximum flexibility.

Advanced Text Styling Example
Console Output
heco-log colorful output example