{"id":20473983,"url":"https://github.com/pecuchet/color-range-picker","last_synced_at":"2025-08-01T08:40:52.162Z","repository":{"id":57203319,"uuid":"139030465","full_name":"pecuchet/color-range-picker","owner":"pecuchet","description":"Simple ES6 colorpicker UI for a chosen set of colors; creates color ranges/shades","archived":false,"fork":false,"pushed_at":"2018-07-09T09:22:23.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T02:22:37.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pecuchet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-28T14:37:11.000Z","updated_at":"2018-07-09T09:22:24.000Z","dependencies_parsed_at":"2022-09-17T00:50:38.433Z","dependency_job_id":null,"html_url":"https://github.com/pecuchet/color-range-picker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pecuchet/color-range-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Fcolor-range-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Fcolor-range-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Fcolor-range-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Fcolor-range-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pecuchet","download_url":"https://codeload.github.com/pecuchet/color-range-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Fcolor-range-picker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268192592,"owners_count":24210541,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T14:27:25.422Z","updated_at":"2025-08-01T08:40:51.752Z","avatar_url":"https://github.com/pecuchet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color Range Picker\n\nInspired by @wieringen's [tinycolorpicker](https://github.com/wieringen/tinycolorpicker), this small library\nrenders a color circle from a configurable set of colors and can generate a range of shades from the picked color.  \n\u003cbr\u003e\n[Demo](https://pecuchet.github.io/color-range-picker/)\n\n## Install\n``` npm i color-range-picker --save ```\n\n\n## Public properties and methods\n\n| Name | Type | Description | Returns |\n| ---- | ---- | ----------- | ------- |\n| ``hex`` | accessor | Get the hexadecimal notation of the last chosen color | String |\n| ``rgb`` | accessor | Get the rgb notation of the last chosen color | String |\n| ``RGBToHex(Array/String)`` | static method | Convert a RGB array or string to hexadecimal string | String |\n| ``hexToRGB(Array/String)`` | static method | Convert a hexadecimal string to a RGB array | Array/null |\n| ``range(Array/String, Number)`` | static method | Generate a range of colors from the currently picked color | Array/null |\n| ``getFormat(Array/String)`` | static method | Check the color format | String |\n| ``toggle()`` | method | Show or hide the ui | void |\n| ``destroy()`` | method | Remove the UI from the DOM | void |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpecuchet%2Fcolor-range-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpecuchet%2Fcolor-range-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpecuchet%2Fcolor-range-picker/lists"}