forked from aramk/CSSJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
92 lines (92 loc) · 4.09 KB
/
package.json
File metadata and controls
92 lines (92 loc) · 4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"_args": [
[
{
"raw": "cssjson",
"scope": null,
"escapedName": "cssjson",
"name": "cssjson",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"/Development/ATT/gvphero-demo"
]
],
"_from": "cssjson@latest",
"_id": "cssjson@2.1.3",
"_inCache": true,
"_location": "/cssjson",
"_nodeVersion": "0.10.28",
"_npmUser": {
"name": "farhadg",
"email": "me@farhadg.com"
},
"_npmVersion": "2.1.3",
"_phantomChildren": {},
"_requested": {
"raw": "cssjson",
"scope": null,
"escapedName": "cssjson",
"name": "cssjson",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/cssjson/-/cssjson-2.1.3.tgz",
"_shasum": "b855aa06c5979df16bf6375a14a455e415660169",
"_shrinkwrap": null,
"_spec": "cssjson",
"_where": "/Development/ATT/gvphero-demo",
"author": {
"name": "Aram Kocharyan https://github.com/aramk"
},
"bugs": {
"url": "https://github.com/aramk/CSSJSON/issues"
},
"dependencies": {},
"description": "Converts CSS to JSON and back.",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "b855aa06c5979df16bf6375a14a455e415660169",
"tarball": "https://registry.npmjs.org/cssjson/-/cssjson-2.1.3.tgz"
},
"gitHead": "23be994dbd4fc624ba87322ac1a9d463d530703d",
"homepage": "https://github.com/aramk/CSSJSON",
"keywords": [
"css",
"json",
"json",
"to",
"css",
"json",
"to",
"css",
"converter"
],
"license": "MIT",
"main": "cssjson.js",
"maintainers": [
{
"name": "farhadg",
"email": "me@farhadg.com"
}
],
"name": "cssjson",
"optionalDependencies": {},
"readme": "# CSS-JSON Converter for JavaScript\r\n\r\nCSS-JSON Converter for JavaScript\r\nConverts CSS to JSON and back.\r\n\r\nVersion 2.1.3\r\n\r\nReleased under the MIT license.\r\n\r\n## Usage\r\n\r\n\t// To JSON\r\n\tvar json = CSSJSON.toJSON(cssString);\r\n\r\n\t// To CSS\r\n\tvar css = CSSJSON.toCSS(jsonObject);\r\n\r\n## Sample\r\n\r\nSee example.html\r\n\r\n### JSON\r\n\r\n {\r\n \"children\": {\r\n \"@media (max-width: 800px)\": {\r\n \"children\": {\r\n \"#main #comments\": {\r\n \"children\": {},\r\n \"attributes\": {\r\n \"margin\": \"0px\",\r\n \"width\": \"auto\",\r\n \"background\": \"red\"\r\n }\r\n },\r\n \"#main #buttons\": {\r\n \"children\": {},\r\n \"attributes\": {\r\n \"padding\": \"5px 10px\",\r\n \"color\": \"blue\"\r\n }\r\n }\r\n },\r\n \"attributes\": {}\r\n },\r\n \"#main #content\": {\r\n \"children\": {},\r\n \"attributes\": {\r\n \"margin\": \"0 7.6%\",\r\n \"width\": \"auto\"\r\n }\r\n },\r\n \"#nav-below\": {\r\n \"children\": {},\r\n \"attributes\": {\r\n \"border-bottom\": \"1px solid #ddd\",\r\n \"margin-bottom\": \"1.625em\",\r\n \"background-image\": \"url(http://www.example.com/images/im.jpg)\"\r\n }\r\n }\r\n },\r\n \"attributes\": {}\r\n }\r\n\r\n### CSS\r\n\r\n @media (max-width: 800px) {\r\n #main #comments {\r\n margin: 0px;\r\n width: auto;\r\n background: red;\r\n }\r\n #main #buttons {\r\n padding: 5px 10px;\r\n color: blue;\r\n }\r\n }\r\n #main #content {\r\n margin: 0 7.6%;\r\n width: auto;\r\n }\r\n #nav-below {\r\n border-bottom: 1px solid #ddd;\r\n margin-bottom: 1.625em;\r\n background-image: url(http://www.example.com/images/im.jpg);\r\n }\r\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/aramk/CSSJSON.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "2.1.3"
}