{"name":"cssom","description":"CSS Object Model implementation and CSS parser","keywords":["CSS","CSSOM","parser","styleSheet"],"version":"0.4.3","author":{"name":"Nikita Vasilyev","email":"me@elv1s.ru"},"repository":{"type":"git","url":"git+https://github.com/NV/CSSOM.git"},"main":"./lib/index.js","license":"MIT","gitHead":"a4b46da3a2f3eeeca488f098aaedee2a02825e86","bugs":{"url":"https://github.com/NV/CSSOM/issues"},"homepage":"https://github.com/NV/CSSOM#readme","_id":"cssom@0.4.3","_nodeVersion":"8.11.1","_npmVersion":"6.10.0","dist":{"integrity":"sha512-dZisaUJnxZM8VCmsYqCNws8YsULg+nwLSa37lc5ulwp0m+QN9gego/XB3p99hdah3PFErlReovXaqBDrRws4yg==","shasum":"264eef6452e7bf30b2a4ff218af5e02f19b30bbe","tarball":"http://registry-npm.ywwl.com/cssom/download/cssom-0.4.3.tgz","fileCount":23,"unpackedSize":48737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzJLjCRA9TVsSAnZWagAAjDIP/2idDr8QpGEhl8H/vYR5\naU8G68uHotkg2dm4FrqFGV5azNjAmqA9LZcCALmxmVEjGxwnghaRBxcF7guM\nYYRu0AaQBWpvT2iwFYulg8usl/uk5vStqYUO16OKJnBUHlsuiMclM/68XDio\nxdYJ5Wyhce5Hnp1IoEBwf00WfCKhsEYCSgpSMZRbGOfE/Xv9BvLrN+gPdPn7\n6sEElRG+jPtzhuOCWhO3Pk5wPOMiZD6tbWdKGmwhvehJqIg/+u3SCvMDmOZ7\nFwoGnjqgJEzMgubTUG8dUaFlISJ6bFyWlIJen7QiW1z8pAfFN+A9uZtiV4PE\n9JFO3lgFPdoimqYxoptcC5VP5YPpg7HlGHragr6sIY4rbaOqwX8qZcLjjQ5V\n3fZsfjheT60ny4zWMgRK2pYKBrwnA21sR7b3dlCZPI405kzhhCbKWq5iy6WL\n1cKAeeWAz3xvaPq4e+3cw6fYX2ndez0LfU/0U8Mq7IRjJNNoaD4Skln3/IeP\nthSuUI48Ub03KFPsCz2j9c9PLg/8rWBBaMdXykX5Mtdk86kEmhkhqlUdjfx6\niOL2ZqDrVF22nFRbsLAEkUzF2lOFNM4KySfnDbltjigdgGMOOAwme3zjNHuv\naXAgZrpXyYcFxwQuAF9QgUFCiEHSvzPyimiVp243Co8GHwo/lxlfgPvN+/6/\nOwC7\r\n=zZfW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCw/8JvyY5VdZHNn+iR3LAyY8uxLYhjTteBS9Tzh3KwgIhAJ3pvHeLdlwC3J2pQgEXh9iMOjYKGdT+Dzi24ymtgCTf"}],"size":11801,"noattachment":false,"key":"/cssom/-/cssom-0.4.3.tgz"},"maintainers":[{"name":"domenic","email":"domenic@domenicdenicola.com"},{"name":"nv","email":"me@elv1s.ru"}],"_npmUser":{"name":"nv","email":"me@elv1s.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cssom_0.4.3_1573688035075_0.3057085574804457"},"_hasShrinkwrap":false,"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](http://nv.github.com/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/NV/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 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](http://nv.github.com/CSSOM/spec/)\n\nTo run tests locally:\n\n    ➤ git submodule init\n    ➤ git submodule update\n\n\n## [Who uses CSSOM.js](https://github.com/NV/CSSOM/wiki/Who-uses-CSSOM.js)\n","publish_time":1573688035281,"_cnpm_publish_time":1573688035281,"dist-tags":{"latest":"0.5.0"}}