{"library":"color-string","type":"library","category":null,"description":"color-string is a focused utility library for parsing and generating CSS-compatible color strings, supporting various formats like RGB, HSL, HWB, and named colors. The current stable version is 2.1.4. The library maintains a reasonably active release cadence, with recent updates introducing features like case-insensitive string checks and improved parsing for modern CSS color notations, alongside crucial bug fixes. Its key differentiators include its lightweight nature, explicit support for multiple color models, and direct conversion capabilities to and from different string representations, making it a reliable choice for frontend and backend color manipulation tasks where CSS compatibility is paramount. It ships with TypeScript types for enhanced developer experience.","language":"javascript","status":"active","version":"2.1.4","tags":["javascript","color","colour","rgb","css","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install color-string","imports":["import colorString from 'color-string';","import colorString from 'color-string'; const parsed = colorString.get('#FFF');","import colorString from 'color-string'; const hex = colorString.to.hex(255, 255, 255);"]},{"cmd":"yarn add color-string","imports":[]},{"cmd":"pnpm add color-string","imports":[]}],"homepage":null,"github":"https://github.com/Qix-/color-string","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/color-string","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/color-string/compatibility"}}