awecolor
v0.1.0
Published
Colorize hex color codes in text
Readme
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 awecolorOr run directly with npx:
npx awecolor styles.cssQuick Start
# Pipe from any command
cat styles.css | awecolor
# Read a file directly
awecolor theme.json
# List all colors with locations
awecolor --extract styles.cssCommands
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 pipedDevelopment
npm test