{"library":"cssom","type":"library","category":null,"description":"CSSOM.js is a pure JavaScript CSS parser and a partial implementation of the W3C CSS Object Model (CSSOM). Currently at version 0.5.0, this library provides functionality to parse raw CSS strings into a structured object representation, allowing for basic programmatic inspection and manipulation of CSS rules. Its release cadence has been slow, with the last publish being 5 years ago. A key differentiator is its direct representation of CSS as a JavaScript object. However, it explicitly advises against its use for advanced CSS processing tasks such as minification, munging, or reformatting, particularly where the preservation of property order or fallback declarations (e.g., `background: gray; background: linear-gradient(...)`) is critical, as it applies CSS cascade rules and overwrites properties. It also has known limitations, including incomplete support for all CSS escape sequences and incompatibility with Internet Explorer versions prior to 9.","language":"javascript","status":"maintenance","version":"0.5.0","tags":["javascript","CSS","CSSOM","parser","styleSheet"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cssom","imports":["const CSSOM = require('cssom');","const CSSOM = require('cssom');\nconst parsedCSS = CSSOM.parse('body {color: black;}');","const CSSOM = require('cssom');\nconst styleDeclaration = new CSSOM.CSSStyleDeclaration();"]},{"cmd":"yarn add cssom","imports":[]},{"cmd":"pnpm add cssom","imports":[]}],"homepage":null,"github":"https://github.com/NV/CSSOM","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cssom","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/cssom/compatibility"}}