{"library":"rgb2hex","type":"library","category":null,"description":"rgb2hex is a lightweight JavaScript library designed to parse RGB and RGBA color strings into their hexadecimal representation, including an alpha value for transparency. It operates without any external dependencies, making it suitable for environments where bundle size is critical. The current stable version is 0.2.5, released in November 2020. While updates have been infrequent since then, the library provides a focused solution for color conversion. A key differentiator is its minimal footprint and direct functionality, contrasting with larger color manipulation libraries that offer broader feature sets. It includes TypeScript type definitions for enhanced developer experience in modern projects. The library gained significant stability and security improvements between its early `v0.1.x` and `v0.2.x` releases, particularly addressing RegExp Denial of Service vulnerabilities.","language":"javascript","status":"maintenance","version":"0.2.5","tags":["javascript","rgb","rgba","hex","color","parse","parser","typescript"],"install":[{"cmd":"npm install rgb2hex","imports":["import rgb2hex from 'rgb2hex';","const rgb2hex = require('rgb2hex');","import type { RgbResult } from 'rgb2hex';"]},{"cmd":"yarn add rgb2hex","imports":[]},{"cmd":"pnpm add rgb2hex","imports":[]}],"homepage":null,"github":"https://github.com/christian-bromann/rgb2hex","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/rgb2hex","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/rgb2hex/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}