chromacon

@nevware21/chromacon

Text formatting utilities to colorize your text output.

GitHub Workflow Status (main) codecov npm version downloads downloads

Overview

Chromacon is a powerful, TypeScript/JavaScript library for adding colors and text formatting to your console and terminal output. Built with modern development practices, it provides a comprehensive API for creating rich, colorful text output across different environments and color support levels.

Key Features

API Reference

Core API Reference

Quick Example

import { red, green, blue, bold, underline, bgYellow } from "@nevware21/chromacon";

// Basic usage
console.log(red("Error: Something went wrong"));
console.log(green("Success: Operation completed"));
console.log(bold("Important message"));

// Combine colors and styles
console.log(bold(red("Critical Alert")));
console.log(bgYellow(blue("Blue text on yellow background")));

Installation

npm install @nevware21/chromacon

Resources