Ported color-thief to node.js