@apestaartje/color-name
v1.3.0
Published
I am a big fan of [zss](https://github.com/zicht/zss), by convention you are not allowed to use a hexadecimal value for a color. Every color needs to be converted to a name. I am used to consult the website color-blindness.com for this. As an exercise t
Downloads
4
Readme
Color Name
I am a big fan of zss, by convention you are not allowed to use a hexadecimal value for
a color. Every color needs to be converted to a name. I am used to consult the website color-blindness.com for this. As
an exercise to get acquainted with puppeteer
, I created this script to get the name of a color using the commandline.
This script uses the form on www.color-blindness.com to get the name of a color.
Install
The script requires nodejs >= 8
. Install the script npm install git+https://github.com/joppe/color-name.git
. The
script can now be used by typing node_modules/.bin/color-name f03455
.
If you want to use the script system wide, just add --global
to the npm install
command.
Configuration
There is a config.json
in the config
folder. There is only one option and that is noSandbox
. If you run in the
problem that when the script is executed you see an error message in the form of No usable sandbox! Update your kernel
.
Then set the property to true
, now the script should execute normally.
Run
In a console type node_modules/.bin/color-name f03455
and press enter. After a short delay the color will be displayed.
You can enter multiple colors by separating them with spaces.