{"id":18799873,"url":"https://github.com/mcnaveen/node-rgb-to-hex","last_synced_at":"2026-05-09T10:21:49.080Z","repository":{"id":103680189,"uuid":"465298688","full_name":"mcnaveen/node-rgb-to-hex","owner":"mcnaveen","description":"Simple utility to convert RGB Values to HEX color codes","archived":false,"fork":false,"pushed_at":"2022-03-02T12:37:15.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T15:40:26.543Z","etag":null,"topics":["color","colors","convert","convertor","hex","node","node-module","nodejs","nodejs-modules","npm-package","rgb","yarnpkg"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-rgb-to-hex","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-02T12:35:05.000Z","updated_at":"2023-09-08T08:23:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"ead32083-7b60-4614-93d8-78f941bb7c07","html_url":"https://github.com/mcnaveen/node-rgb-to-hex","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"8e4df3dbdc09ed89d063ce963e83153d294e01de"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-rgb-to-hex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-rgb-to-hex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-rgb-to-hex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnode-rgb-to-hex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcnaveen","download_url":"https://codeload.github.com/mcnaveen/node-rgb-to-hex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239728851,"owners_count":19687414,"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":["color","colors","convert","convertor","hex","node","node-module","nodejs","nodejs-modules","npm-package","rgb","yarnpkg"],"created_at":"2024-11-07T22:16:54.620Z","updated_at":"2026-01-03T08:30:16.268Z","avatar_url":"https://github.com/mcnaveen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert RGB to HEX\n:unicorn: Simple utility to convert RGB Values to HEX color codes\n\n![Build](https://github.com/mcnaveen/node-rgb-to-hex/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-rgb-to-hex --save\n``` \n\n (or)\n\nInstall with Yarn:\n```\nyarn add node-rgb-to-hex\n```\n\n### :pen: Usage\n\nImport the module in your project:\n\n```javascript\n// Commonjs Import\nvar rgbToHex = require(\"node-rgb-to-hex\");\n\n// or ES6 import\nimport rgbToHex from \"node-rgb-to-hex\";\n```\n\n### :bulb: Example\n\nPass the RGB value to the function\n\n```javascript\nimport rgbToHex from \"node-rgb-to-hex\";\n\nconst hex = rgbToHex(255, 255, 255)\nconsole.log(hex);\n\n```\n\n### :ballot_box_with_check: Example Output\n```\n#ffffff\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-rgb-to-hex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcnaveen%2Fnode-rgb-to-hex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnaveen%2Fnode-rgb-to-hex/lists"}