1.0.1 • Published 3 years ago

@cosmicice/namethatcolor v1.0.1

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
3 years ago

Name That Color

A Node.js Module based on Name That Color.

Installation:

# With NPM
npm install @cosmicice/namethatcolor

# With Yarn
yarn add @cosmicice/namethatcolor

Usage:

const { ntc } = require('@cosmicice/namethatcolor');
// or ES6 Import
import { ntc } from '@cosmicice/namethatcolor';

const color = ntc.name('#eeeeee');

console.log(color.color); // Closest RGB Value
console.log(color.name); // Color Name
console.log(color.isExact); // True if exact color match

Feel free to contribute (:

© cosmicice 2021. This project is licensed under the AGPL-3.0 License.