@asdsadw12312dwd2112xz/color-convert-cli
v1.0.0
Published
Convert colors between HEX, RGB, HSL, HSV, CMYK formats from the terminal
Maintainers
Readme
color-convert-cli
Convert colors between HEX, RGB, HSL, HSV, CMYK formats from the terminal.
Installation
npm install -g color-convert-cliUsage
Auto-detect input format and show all conversions:
color-convert-cli "#ff6600"
color-convert-cli "rgb(255, 102, 0)"
color-convert-cli "hsl(24, 100%, 50%)"Convert to a specific format:
color-convert-cli "#ff6600" --to rgb
color-convert-cli "rgb(255, 102, 0)" --to hsl
color-convert-cli "hsl(24, 100%, 50%)" --to hexSpecify input format explicitly:
color-convert-cli "255,102,0" --from rgb --to hexSupported Formats
| Format | Example Input |
|--------|---------------|
| HEX | #ff6600, #f60, ff6600 |
| RGB | rgb(255, 102, 0), 255,102,0 |
| HSL | hsl(24, 100%, 50%) |
| HSV | hsv(24, 100%, 100%) |
| CMYK | cmyk(0, 60, 100, 0) |
License
MIT
