How to use the colornames.get function in colornames

To help you get started, we’ve selected a few colornames examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github silentrob / superscript-websocket-demo / plugins / color.js View on Github external
facts.get({ object: color, predicate:'color'}, function(err, list) {
    if (!_.isEmpty(list) || toHex.get(color) !== undefined) {
      var colorHex = toHex(color);
      that.message.props['color'] = colorHex;, "currentColor", colorHex, function(){
        cb(null, color + " is a great. This shade?");
    } else {
      cb(null, "That isn't a color");


Map color names to HEX color values.

Latest version published 8 years ago

Package Health Score

65 / 100
Full package analysis

Popular colornames functions