lokesh/color-thief — pull request #38 by tomhicks (2014-07-23 18:04:02+00:00)
Title: make it work in node with requireJs

with just a var, it is not possible to use this inside node and requireJs (it breaks shimming). By assigning ColorThief to the global namespace, we can set up a shim in requireJS config to make ColorThief available.

This does the exact same thing as the current version, in that ColorThief appears on the window in a browser. I would like to add proper AMD support quite soon.