Style to Object Parser

JSON →
library 1.0.14 ·javascript
verified May 27, 2026

style-to-object is a focused JavaScript library designed to parse CSS inline style strings into a plain JavaScript object. The current stable version is 1.0.14, and the package maintains a consistent, frequent release cadence primarily for minor dependency updates and occasional bug fixes within the 1.x series. Its core functionality offers a straightforward API for converting CSS style declarations (e.g., `color: #C0FFEE; background: #BADA55;`) into a corresponding JavaScript object where property names are converted from hyphen-case to camelCase or retained as hyphen-case depending on usage. A key differentiator is its optional iterator function, which allows for custom processing of each parsed declaration, rather than just returning a final object. The library ships with TypeScript types, enhancing developer experience for type-safe applications, and builds its parsing logic on the `inline-style-parser` package.

total hits 11
actors 5 distinct systems
last hit 7d ago Script
GPTBot
5
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France