cosmicle0 / name-that-color

A Node.js Module based on Name That Color (https://chir.ag/projects/ntc/).

Home Page:https://npmjs.com/package/@cosmicice/namethatcolor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Node.js Module based on Name That Color (https://chir.ag/projects/ntc/).

https://npmjs.com/package/@cosmicice/namethatcolor

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%