1.0.3 • Published 3 years ago

@igloo_cloud/hex-to-name v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago