Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80676 views
1
{
2
"name": "cssom",
3
"description": "CSS Object Model implementation and CSS parser",
4
"keywords": [
5
"CSS",
6
"CSSOM",
7
"parser",
8
"styleSheet"
9
],
10
"version": "0.3.0",
11
"homepage": "https://github.com/NV/CSSOM",
12
"author": {
13
"name": "Nikita Vasilyev",
14
"email": "[email protected]"
15
},
16
"repository": {
17
"type": "git",
18
"url": "git://github.com/NV/CSSOM.git"
19
},
20
"bugs": {
21
"url": "https://github.com/NV/CSSOM/issues"
22
},
23
"main": "./lib/index.js",
24
"devDependencies": {
25
"jake": "~0.7.3"
26
},
27
"license": {
28
"type": "MIT",
29
"url": "http://creativecommons.org/licenses/MIT/"
30
},
31
"scripts": {
32
"prepublish": "jake lib/index.js"
33
},
34
"readme": "# CSSOM\n\nCSSOM.js is a CSS parser written in pure JavaScript. It 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 with [Jake](http://github.com/mde/jake):\n\n ➤ jake\n build/CSSOM.js is done\n\nTo use it with Node.js:\n\n npm install cssom\n\n## [Specs](http://nv.github.com/CSSOM/spec/)\n\n## [Who uses CSSOM.js](https://github.com/NV/CSSOM/wiki/Who-uses-CSSOM.js)\n",
35
"readmeFilename": "README.mdown",
36
"_id": "[email protected]",
37
"dist": {
38
"shasum": "386d5135528fe65c1ee1bc7c4e55a38854dbcf7a",
39
"tarball": "http://registry.npmjs.org/cssom/-/cssom-0.3.0.tgz"
40
},
41
"_resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.0.tgz",
42
"_from": "cssom@>=0.3.0 <0.4.0",
43
"_npmVersion": "1.3.8",
44
"_npmUser": {
45
"name": "domenic",
46
"email": "[email protected]"
47
},
48
"maintainers": [
49
{
50
"name": "nv",
51
"email": "[email protected]"
52
},
53
{
54
"name": "domenic",
55
"email": "[email protected]"
56
}
57
],
58
"directories": {},
59
"_shasum": "386d5135528fe65c1ee1bc7c4e55a38854dbcf7a"
60
}
61
62