{"id":15789525,"url":"https://github.com/danielgtaylor/rhs-color","last_synced_at":"2025-06-10T23:05:56.341Z","repository":{"id":136301141,"uuid":"87892311","full_name":"danielgtaylor/rhs-color","owner":"danielgtaylor","description":"R.H.S. color conversion utilities","archived":false,"fork":false,"pushed_at":"2017-04-11T05:35:57.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-05T22:02:01.305Z","etag":null,"topics":["cli-app","color","converter","gardening","javascript-library"],"latest_commit_sha":null,"homepage":null,"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/danielgtaylor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T05:30:37.000Z","updated_at":"2024-09-29T01:42:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea59c692-4577-41ae-abca-fba40519715d","html_url":"https://github.com/danielgtaylor/rhs-color","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Frhs-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Frhs-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Frhs-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Frhs-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgtaylor","download_url":"https://codeload.github.com/danielgtaylor/rhs-color/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Frhs-color/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259166939,"owners_count":22815588,"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":["cli-app","color","converter","gardening","javascript-library"],"created_at":"2024-10-04T22:02:05.343Z","updated_at":"2025-06-10T23:05:56.319Z","avatar_url":"https://github.com/danielgtaylor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RHS Color Utilities\n\nConvert between [R.H.S. Color Chart](http://www.rhsshop.co.uk/category.aspx?id=10000006) values, RGB screen approximations, and friendly color names.\n\nNote that these are just approximations and accuracy depends on color calibration, gamma settings, and various other factors. Some colors with 0 or 255 for a color component may be impossible to display on a screen and have been clipped.\n\n# Script Usage\n\nFirst, `npm install rhs-color`. It will install a script on your path:\n\n```sh\n$ rhs-color 165A\n165A =\u003e [75,40,29] #4b281d Moderate Brown\n\n$ rhs-color '#4b281d'\n4b281d =\u003e RHS 165A Moderate Brown (#4b281d)\n```\n\n# Library Usage\n\nExample:\n\n```js\nimport rhs from 'rhs-color';\n\nconsole.log(rhs.hex('165A'));\nconsole.log(rhs.rgb('165A'));\nconsole.log(rhs.name('165A'));\nconsole.log(rhs.ucl('165A'));\n\nconsole.log(rhs.fromRgb('#4b281d'));\n```\n\n## License\n\nhttps://dgt.mit-license.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgtaylor%2Frhs-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgtaylor%2Frhs-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgtaylor%2Frhs-color/lists"}