{"library":"style-to-object","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.14","tags":["javascript","style-to-object","inline","style","parser","css","object","pojo","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install style-to-object","imports":["import parse from 'style-to-object';","const parse = require('style-to-object').default;","import type { StyleObject } from 'style-to-object';"]},{"cmd":"yarn add style-to-object","imports":[]},{"cmd":"pnpm add style-to-object","imports":[]}],"homepage":null,"github":"https://github.com/remarkablemark/style-to-object","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/style-to-object","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-to-object/compatibility"}}