A Node.js Module based on Name That Color.
# With NPM
npm install @cosmicice/namethatcolor
# With Yarn
yarn add @cosmicice/namethatcolor
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.