1.0.0 • Published 4 years ago

colour-converter v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

colour-converter

Utility to convert from one colour format to another, although currently only does hsl...

Getting started

npm i -g colour-converter

echo "#663399" | hsl

hsl can convert objects, arrays, and strings, so the following inputs will all work:

echo '#88b04b' | hsl
echo '{ "roseQuartz": "#f7cac9" }' | hsl
echo '[ "#f7fafc", "#edf2f7" ]' | hsl

hsl will attempt to traverse objects looking for viable values to transform so colour palettes are fine to pipe in:

echo '{ "red": { "400": "#fe6f5e", "700": "#c62d42" } }' | hsl