{"_id":"cssjson","_rev":"73680","name":"cssjson","description":"Converts CSS to JSON and back.","dist-tags":{"latest":"2.1.3"},"maintainers":[{"name":"farhadg","email":"me@farhadg.com"}],"time":{"modified":"2024-06-10T12:08:53.000Z","created":"2015-01-21T14:29:40.582Z","2.1.3":"2015-01-21T14:36:23.485Z","2.1.2":"2015-01-21T14:30:49.615Z","2.1.1":"2015-01-21T14:29:40.582Z"},"users":{},"author":{"name":"Aram Kocharyan https://github.com/aramk"},"repository":{"type":"git","url":"https://github.com/aramk/CSSJSON.git"},"versions":{"2.1.3":{"name":"cssjson","version":"2.1.3","description":"Converts CSS to JSON and back.","main":"cssjson.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aramk/CSSJSON.git"},"keywords":["css","json","json","to","css","json","to","css","converter"],"author":{"name":"Aram Kocharyan https://github.com/aramk"},"license":"MIT","bugs":{"url":"https://github.com/aramk/CSSJSON/issues"},"homepage":"https://github.com/aramk/CSSJSON","gitHead":"23be994dbd4fc624ba87322ac1a9d463d530703d","_id":"cssjson@2.1.3","_shasum":"b855aa06c5979df16bf6375a14a455e415660169","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.28","_npmUser":{"name":"farhadg","email":"me@farhadg.com"},"maintainers":[{"name":"farhadg","email":"me@farhadg.com"}],"dist":{"shasum":"b855aa06c5979df16bf6375a14a455e415660169","tarball":"http://registry-npm.ywwl.com/cssjson/download/cssjson-2.1.3.tgz","integrity":"sha512-VKzsSbYW4gwfS6Fg+z1mEII+cvurP/Vr7G3cDLEkvR0tcQD20LpF/ljOOFVVT9XYkOFo4TQWRcB/mSmbrKsXxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEfhM1DnGXe4wrr8uy29sQOSruwG87NyhxQsYQi2jY8AiAMyBMMnFaaa7xhnisobSEaAgNpqc5zatYkganpvG+mUw=="}],"size":10121,"noattachment":false,"key":"/cssjson/-/cssjson-2.1.3.tgz"},"directories":{},"publish_time":1421850983485,"_cnpm_publish_time":1421850983485},"2.1.2":{"name":"cssjson","version":"2.1.2","description":"Converts CSS to JSON and back.","main":"cssjson.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aramk/CSSJSON.git"},"keywords":["css","json","json","to","css","json","to","css","converter"],"author":{"name":"Aram Kocharyan https://github.com/aramk"},"license":"MIT","bugs":{"url":"https://github.com/aramk/CSSJSON/issues"},"homepage":"https://github.com/aramk/CSSJSON","gitHead":"d08e25138a394313b9da1e5f02fed46c4818cd1d","_id":"cssjson@2.1.2","_shasum":"ef1e32c75377178c4b73c528aac11eb2af3c2906","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.28","_npmUser":{"name":"farhadg","email":"me@farhadg.com"},"maintainers":[{"name":"farhadg","email":"me@farhadg.com"}],"dist":{"shasum":"ef1e32c75377178c4b73c528aac11eb2af3c2906","tarball":"http://registry-npm.ywwl.com/cssjson/download/cssjson-2.1.2.tgz","integrity":"sha512-MF1Ji+PPOp+DrsjrW47foemrchbimDpQe9UhvQLgeyyTXqWLsCH0/AwBVqHZExodGAbcmjc2u+SWVnfr5gTErQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGm55jXJgOULlXQvF/7vOr4JKYdrVjBf/MytW0N0ApXoAiBcxtNQ2TaFSLmOZktlwEBDpR8T+IN1aiCiVfTfpWMKnw=="}],"size":10107,"noattachment":false,"key":"/cssjson/-/cssjson-2.1.2.tgz"},"directories":{},"publish_time":1421850649615,"_cnpm_publish_time":1421850649615},"2.1.1":{"name":"cssjson","version":"2.1.1","description":"Converts CSS to JSON and back.","main":"cssjson.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aramk/CSSJSON.git"},"keywords":["css","json","json","to","css","json","to","css","converter"],"author":{"name":"Aram Kocharyan https://github.com/aramk"},"license":"MIT","bugs":{"url":"https://github.com/aramk/CSSJSON/issues"},"homepage":"https://github.com/aramk/CSSJSON","gitHead":"e9e7df589021b884ea5b405a3cd86254dae57174","_id":"cssjson@2.1.1","_shasum":"2553ecdae08356c91933a7d73345d49adcfa9c16","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.28","_npmUser":{"name":"farhadg","email":"me@farhadg.com"},"maintainers":[{"name":"farhadg","email":"me@farhadg.com"}],"dist":{"shasum":"2553ecdae08356c91933a7d73345d49adcfa9c16","tarball":"http://registry-npm.ywwl.com/cssjson/download/cssjson-2.1.1.tgz","integrity":"sha512-hiLsLwxwtUstfqfqTfmDFDoh3TwnpkxL/jqXBs7Qqa36mCvMSVoLv7MF/wH6wIBHyyg9GCRTOf34wcqkocC4wA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBByiXumcWgSSma1TCXtkIk6ZOJPmD2KYfJ7jmj6FVRKAiBauwmSzibJ+3+Sk/l3JfRD5VMiHIHVX3/XA1zIaSSJuA=="}],"size":10106,"noattachment":false,"key":"/cssjson/-/cssjson-2.1.1.tgz"},"directories":{},"publish_time":1421850580582,"_cnpm_publish_time":1421850580582}},"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","_attachments":{},"homepage":"https://github.com/aramk/CSSJSON","bugs":{"url":"https://github.com/aramk/CSSJSON/issues"},"license":"MIT"}