colour-converter

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i colour-converter

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.27 kB

Total Files

7

Last publish

Collaborators

  • mattstyles