Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (colorink) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
color
A tiny bash script that displays color swatches and gradients in your terminal using 24-bit truecolor.
Usage
# Show a color swatch
color '#FF5733'
# Show a gradient between two colors
color '#FF5733' '#3498DB'Swatch mode
Displays a block of color with its hex and RGB values:
██████████████
#FF5733
rgb(255,87,51)
██████████████Gradient mode
Renders a smooth gradient across the terminal width:
#FF5733 ████████████████████████████████████████ #3498DBInstall
# Clone the repo
git clone https://github.com/octavi42/color-cli.git
# Add to your PATH (e.g. in ~/.bashrc or ~/.zshrc)
export PATH="$PATH:$HOME/path/to/color-cli"Or just copy the color script somewhere on your $PATH.
Requirements
- Bash 4.0+
- A terminal that supports 24-bit truecolor (most modern terminals do)
License
MIT