@cosmicice/namethatcolor
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @cosmicice/namethatcolor

Weekly Downloads

4

Version

1.0.1

License

AGPL-3.0

Unpacked Size

93.7 kB

Total Files

5

Last publish

Collaborators

  • cosmicice