I am trying to use the following library, which extracts names from colors:
The problem is that they have a Javascript CDN, but they don't tell you how to use it unless you're using Node.
import namedColors from 'color-name-list';
let someColor = namedColors.find(color => color.hex === '#ffffff');
console.log(someColor.name); // => white
let someNamedColor = namedColors.find(color => color.name === 'Eigengrau')
console.log(someColor.hex); // => #16161d
I don't use node or a server so import doesn't work, how do I run this locally?