Skip to content

Webioinfo01/awecolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awecolor: Hex Color Visualizer

Colorize hex color codes in your terminal.

Pipe text or pass files to see hex colors rendered with their actual background.

English · 简体中文

Version Node

Status npm install Platform npm downloads GitHub stars

Colorize hex color codes in your terminal.

A small CLI that finds hex color codes (#RGB, #RGBA, #RRGGBB, #RRGGBBAA) in text and renders them with colored backgrounds. Useful for previewing colors in CSS, config files, or any text that contains hex values.

Install

npm install -g awecolor

Or run directly with npx:

npx awecolor styles.css

Quick Start

# Pipe from any command
cat styles.css | awecolor

# Read a file directly
awecolor theme.json

# List all colors with locations
awecolor --extract styles.css

Commands

awecolor [OPTIONS] [FILE...]

awecolor styles.css                     # Colorize hex codes in a file
cat styles.css | awecolor               # Colorize from stdin
awecolor --extract styles.css           # List colors with location and context
awecolor --no-color styles.css          # Plain text output (no ANSI)
awecolor --force-color styles.css       # Force color even when piped

Development

npm test

About

Colorize hex color codes in terminal text

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors