{"library":"style-parser","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.1.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install style-parser","imports":["const parse = require('style-parser');"]},{"cmd":"yarn add style-parser","imports":[]},{"cmd":"pnpm add style-parser","imports":[]}],"homepage":null,"github":"https://github.com/weflex/style-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/style-parser","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/style-parser/compatibility"}}