It's a simple jQuery plugin to colorize data elements according to its value:
If the value of
#foo is larger than 500, its color will be set to
if larger than zero, it will be set to
red, otherwise it will not be touched.
You can also use classes instead of colors, but prepending them with a dot:
The easiest way is to just include it in your HTML from the RawGit CDN:
Download the latest release.
You can also install it with npm:
$ npm install colorizejs
How to Contribute
First, make sure you can build it locally:
$ npm install gulp$ gulp
The build has to be clean. If it's not, submit an issue.
Then, make your changes, make sure the build is still clean, and submit a pull request.