CSS Style Parser

JSON →
library 1.1.1 ·javascript maintenance
verified May 27, 2026

style-parser is a lightweight JavaScript library designed for parsing inline CSS style strings into structured JavaScript objects. It is built upon the `Parsimmon` parser combinator library, providing a robust and pure JavaScript solution for extracting style properties. The library is particularly useful in server-side environments with tools like Cheerio or within browser contexts where direct manipulation of string-based `style` attributes is required. The current stable version is 1.1.1. Its key differentiator is the ability to transform a raw CSS style string, such as `"font-size:13px;width:50px"`, into a usable JavaScript object like `{'font-size': '13px', 'width': '50px'}`, which is functionality not natively provided by jQuery or Cheerio's `attr('style')` method. The package's release cadence is not explicitly stated in the provided documentation.

total hits 16
actors 5 distinct systems
last hit 1d ago human
GPTBot
5
MetaBot
4
Script
1
Search engines
1
Humans
1

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