{"id":18026798,"url":"https://github.com/yegor256/colorizejs","last_synced_at":"2025-03-27T01:31:26.260Z","repository":{"id":38238432,"uuid":"141881233","full_name":"yegor256/colorizejs","owner":"yegor256","description":"jQuery plugin to colorize data elements","archived":false,"fork":false,"pushed_at":"2025-03-11T10:03:11.000Z","size":448,"stargazers_count":8,"open_issues_count":8,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T21:06:57.035Z","etag":null,"topics":["javascript","jquery","jquery-plugin"],"latest_commit_sha":null,"homepage":"https://yegor256.github.io/colorizejs","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yegor256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-22T09:08:02.000Z","updated_at":"2025-03-10T12:50:01.000Z","dependencies_parsed_at":"2024-08-25T11:48:44.535Z","dependency_job_id":"a6a7802b-14d4-45e6-b2f3-6deb51ca73a8","html_url":"https://github.com/yegor256/colorizejs","commit_stats":{"total_commits":60,"total_committers":4,"mean_commits":15.0,"dds":0.5833333333333333,"last_synced_commit":"d81c4bfd2a4100567e6c033519a4f57a2d77a12b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fcolorizejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fcolorizejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fcolorizejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fcolorizejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/colorizejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245764710,"owners_count":20668464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","jquery","jquery-plugin"],"created_at":"2024-10-30T08:08:06.535Z","updated_at":"2025-03-27T01:31:24.958Z","avatar_url":"https://github.com/yegor256.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/colorizejs)](http://www.rultor.com/p/yegor256/colorizejs)\n\n[![Build Status](https://travis-ci.org/yegor256/colorizejs.svg)](https://travis-ci.org/yegor256/colorizejs)\n[![PDD status](http://www.0pdd.com/svg?name=yegor256/colorizejs)](http://www.0pdd.com/p?name=yegor256/colorizejs)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/colorizejs/blob/master/LICENSE.txt)\n[![NPM version](https://badge.fury.io/js/colorizejs.svg)](http://badge.fury.io/js/colorizejs)\n\nIt's a simple [jQuery](https://jquery.com/) plugin\nto colorize data elements according to their values:\n\n```javascript\n$('#foo').colorizejs({ 500: 'green', 0: 'red' });\n```\n\nIf the value of `#foo` is larger than 500, its color will be set to `green`,\nif it is larger than zero, it will be set to `red`,\notherwise it won't be touched.\n\nYou can also use classes instead of colors by prepending them with a dot:\n\n```javascript\n$('#foo').colorizejs({ 500: '.green', 0: '.red' });\n```\n\nThe easiest way is to just include it in your HTML from the\n[RawGit CDN](https://rawgit.com/):\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://cdn.rawgit.com/yegor256/colorizejs/gh-pages/colorizejs.min.js\"/\u003e\n  \u003c/head\u003e\n\u003c/html\u003e\n```\n\nOtherwise, you can download the\n[latest release](https://github.com/yegor256/colorizejs/releases).\n\nYou can also install it with npm:\n\n```bash\n$ npm install colorizejs\n```\n\n## How to Contribute\n\nFirst, make sure you can build it locally:\n\n```bash\n$ npm install --global gulp-cli\n$ gulp\n```\n\nThe build has to be clean. If it's not, [submit an issue](https://github.com/yegor256/colorizejs/issues).\n\nThen, make your changes, make sure the build is still clean,\nand [submit a pull request](https://www.yegor256.com/2014/04/15/github-guidelines.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fcolorizejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Fcolorizejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fcolorizejs/lists"}