bgrins/TinyColor — pull request #6 by tylersticka (2012-07-23 18:14:46+00:00)
Title: Node compatibility

TinyColor is an awesome library, thank you so much for writing it!

I was interested in trying it out as both a Node module and in a browser. It only required minor adjustments to what you had, so I figured I'd submit to you as a pull request if you think the feature would be worth integrating.

Here are the important bits that changed:

* Changed `window` to `root` since it may not always be run in-browser. Semantic quibble, I know...
* If run on the server, `tinycolor` will be the module's sole export. Otherwise, it'll be attached to `root` (formerly `window`) like it always had.

I also tweaked the formatting of the README so the pre-formatted portions near the top would render correctly on GitHub.

Thanks again!