{"id":18799874,"url":"https://github.com/mcnaveen/node-hex-to-rgb","last_synced_at":"2026-04-26T16:32:38.861Z","repository":{"id":65460690,"uuid":"465305758","full_name":"mcnaveen/node-hex-to-rgb","owner":"mcnaveen","description":"Simple utility to convert HEX color codes to RGB Values","archived":false,"fork":false,"pushed_at":"2022-03-02T12:57:01.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T03:21:12.524Z","etag":null,"topics":["color","convert","convertor","hex","node-module","nodejs","nodejs-modules","rgb"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-hex-to-rgb","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/mcnaveen.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":"2022-03-02T12:56:06.000Z","updated_at":"2023-09-08T08:23:02.000Z","dependencies_parsed_at":"2023-01-24T15:05:16.306Z","dependency_job_id":null,"html_url":"https://github.com/mcnaveen/node-hex-to-rgb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcnaveen/node-hex-to-rgb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-hex-to-rgb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-hex-to-rgb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-hex-to-rgb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-hex-to-rgb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcnaveen","download_url":"https://codeload.github.com/mcnaveen/node-hex-to-rgb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-hex-to-rgb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32305035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["color","convert","convertor","hex","node-module","nodejs","nodejs-modules","rgb"],"created_at":"2024-11-07T22:16:54.920Z","updated_at":"2026-04-26T16:32:38.845Z","avatar_url":"https://github.com/mcnaveen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert HEX to RGB\n:unicorn: Simple utility to convert HEX color codes to RGB Values\n\n![Build](https://github.com/mcnaveen/node-hex-to-rgb/workflows/Build/badge.svg)\n\n![Extract Email Domain Name](./image/cover.png)\n\n### :package: Requirements\nNode.js 12.x LTS or 14.x LTS\n\n### :sparkles: Installation\n\nInstall the NPM Package with the below command:\n```\nnpm install node-hex-to-rgb --save\n``` \n\n (or)\n\nInstall with Yarn:\n```\nyarn add node-hex-to-rgb\n```\n\n### :pen: Usage\n\nImport the module in your project:\n\n```javascript\n// Commonjs Import\nvar hexToRGB = require(\"node-hex-to-rgb\");\n\n// or ES6 import\nimport hexToRGB from \"node-hex-to-rgb\";\n```\n\n### :bulb: Example\n\nPass the RGB value to the function\n\n```javascript\nimport hexToRGB from \"node-hex-to-rgb\";\n\nconst rgb = hexToRGB(\"#ff0000\");\nconsole.log(rgb);\n```\n\n### :ballot_box_with_check: Example Output\n```\n[ { red: 255, green: 0, blue: 0 } ]\n```\n---\n\n\n#### :green_heart: Message\n\nI hope you find this useful. If you have any questions, please create an issue.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnaveen%2Fnode-hex-to-rgb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcnaveen%2Fnode-hex-to-rgb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnaveen%2Fnode-hex-to-rgb/lists"}