{"name":"@acemir/cssom","version":"0.9.25","keywords":["CSS","CSSOM","parser","styleSheet"],"author":{"name":"Nikita Vasilyev","email":"me@elv1s.ru"},"license":"MIT","_id":"@acemir/cssom@0.9.25","maintainers":[{"name":"acemir","email":"acemirsm@gmail.com"}],"contributors":[{"name":"Acemir Sousa Mendes","email":"acemirsm@gmail.com"}],"homepage":"https://github.com/acemir/CSSOM#readme","bugs":{"url":"https://github.com/acemir/CSSOM/issues"},"dist":{"shasum":"ac9fb9be4e47b4d226ca559a9566775976b4d43e","tarball":"http://registry-npm.ywwl.com/@acemir/cssom/download/@acemir/cssom-0.9.25.tgz","fileCount":39,"integrity":"sha512-ZWKTnGx+py7q6W3Q1q7+ZOW0GLuhgaxjBRMytOxYu5CQwIF6YCu5iCgY7NzuTt+DkpAa4jqKfvxANuCBWTzdVg==","signatures":[{"sig":"MEQCIGw4uP3H3udwoK4iPt7JbJFYsGmQRPKqq1uVOZ9IVGW+AiAVPvkLeCcdOZWxPnRBCAbD3bpAkZS7xNaStstM0ppFfw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":338981,"size":72988,"noattachment":false,"key":"/@acemir/cssom/-/@acemir/cssom-0.9.25.tgz"},"main":"./lib/index.js","gitHead":"1b79a8b4dd8d77ffc3fb06b10298ce9ba09014f9","scripts":{"build":"node build.js","release":"npm run build && changeset publish"},"_npmUser":{"name":"acemir","email":"acemirsm@gmail.com"},"repository":{"url":"git+https://github.com/acemir/CSSOM.git","type":"git"},"_npmVersion":"11.6.2","description":"CSS Object Model implementation and CSS parser","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"@changesets/cli":"^2.27.1","@changesets/changelog-github":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/cssom_0.9.25_1764862558401_0.3771072434567242","host":"s3://npm-registry-packages-npm-production"},"readme":"# CSSOM\n\nCSSOM.js is a CSS parser written in pure JavaScript. It is also a partial implementation of [CSS Object Model](http://dev.w3.org/csswg/cssom/). \n\n    CSSOM.parse(\"body {color: black}\")\n    -> {\n      cssRules: [\n        {\n          selectorText: \"body\",\n          style: {\n            0: \"color\",\n            color: \"black\",\n            length: 1\n          }\n        }\n      ]\n    }\n\n\n## [Parser demo](https://acemir.github.io/CSSOM/docs/parse.html)\n\nWorks well in Google Chrome 6+, Safari 5+, Firefox 3.6+, Opera 10.63+.\nDoesn't work in IE < 9 because of unsupported getters/setters.\n\nTo use CSSOM.js in the browser you might want to build a one-file version that exposes a single `CSSOM` global variable:\n\n    ➤ git clone https://github.com/acemir/CSSOM.git\n    ➤ cd CSSOM\n    ➤ node build.js\n    build/CSSOM.js is done\n\nTo use it with Node.js or any other CommonJS loader:\n\n    ➤ npm install @acemir/cssom\n\n## Don’t use it if...\n\nYou parse CSS to mungle, minify or reformat code like this:\n\n```css\ndiv {\n  background: gray;\n  background: linear-gradient(to bottom, white 0%, black 100%);\n}\n```\n\nThis pattern is often used to give browsers that don’t understand linear gradients a fallback solution (e.g. gray color in the example).\nIn CSSOM, `background: gray` [gets overwritten](http://nv.github.io/CSSOM/docs/parse.html#css=div%20%7B%0A%20%20%20%20%20%20background%3A%20gray%3B%0A%20%20%20%20background%3A%20linear-gradient(to%20bottom%2C%20white%200%25%2C%20black%20100%25)%3B%0A%7D).\nIt does **NOT** get preserved.\n\nIf you do CSS mungling, minification, or image inlining, considere using one of the following:\n\n  * [postcss](https://github.com/postcss/postcss)\n  * [reworkcss/css](https://github.com/reworkcss/css)\n  * [csso](https://github.com/css/csso)\n  * [mensch](https://github.com/brettstimmerman/mensch)\n\n\n## [Tests](https://acemir.github.io/CSSOM/spec/)\n\nTo run tests locally:\n\n    ➤ git submodule init\n    ➤ git submodule update\n","publish_time":1764862558570,"_cnpm_publish_time":1764862558570,"dist-tags":{"latest":"0.10.1"}}