@igloo_cloud/hex-to-name

1.0.3 • Public • Published

Igloo logo

Hex to name

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

Readme

Keywords

none

Package Sidebar

Install

npm i @igloo_cloud/hex-to-name

Weekly Downloads

1

Version

1.0.3

License

none

Unpacked Size

4.16 kB

Total Files

4

Last publish

Collaborators

  • andreazanin
  • samueledassatti
  • igloo.ooo