Name That Color
A Node CommonJS compatible wrapper for the Name That Color library (ntc js) - http://chir.ag/projects/ntc/
Installation
npm install ntcjs --save
Getting Started
const ntc = require('ntcjs');
const n_match = ntc.name('#6195ED');
n_rgb = n_match[0];
n_name = n_match[1];
n_exactmatch = n_match[2];
console.log(n_match);
Live Demo
This is a live demo of the original ntcjs library
http://chir.ag/projects/name-that-color/#6195ED
Running the Tests
Make sure you install the necessary dev dependencies needed to run the tests:
npm install
Then run the tests
npm test
Disclaimer
All credit goes to Chirag Mehta for creating the original ntc.js library.