what-color-is
v0.0.2
Published
Look up colors at the command line using get-string-colors and terminal-kit
Downloads
3
Readme
what-color-is
Look up colors from a terminal using get-string-colors, got and terminal-kit.
Installation
Install globally uing yarn:
yarn global add what-color-is
Authorisation
To interact with Google services, you will need to create a new Custom Search Engine (CSE) and appropriate API Key.
what-color-si
will look for these in a .env
file alongside the shipped .env.example
. This is normally found at:
~/.config/yarn/global/node_modules/what-color-is/
/usr/local/share/.config/yarn/global/node_modules/what-color-is/
# .env
GOOGLE_CSE_ID=01234567890123456789:a1b2c3d4e5f
GOOGLE_API_KEY=ABCDEFGHIJKLMNOPQRSTUVW-xyz0123456789
You can also manage these credentials by exporting them in your .bashrc
or terminal session.
Use
Once set up, you can just call it as
what-color-is 'lime green'
what-color-is 'a saxophone'
what-color-is 'heart'
Development
Please ensure PRs are accompanied by comments and tests.
npm run test