@igloo_cloud/hex-to-name
v1.0.3
Published
Colors that humans can understand
Downloads
2
Keywords
Readme
Convert a hexadecimal code to the name of the closest match in a short and curated list of human readable colors.
Color names are currently available in the following languages:
- English
- Italian
Installation
Just download the library from npm.
Using npm
npm install @igloo-cloud/hex-to-name --save
Using Yarn
yarn add @igloo-cloud/hex-to-name
Usage
const hexToName = new HexToName('en') // Set english as the default language
hexToName.convert('#ff0000') // Red