{ "_args": [ [ { "raw": "cssstyle@>= 0.2.37 < 0.3.0", "scope": null, "escapedName": "cssstyle", "name": "cssstyle", "rawSpec": ">= 0.2.37 < 0.3.0", "spec": ">=0.2.37 <0.3.0", "type": "range" }, "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jsdom" ] ], "_from": "cssstyle@>=0.2.37 <0.3.0", "_id": "cssstyle@0.2.37", "_inCache": true, "_location": "/cssstyle", "_nodeVersion": "6.2.2", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/cssstyle-0.2.37.tgz_1471063626335_0.052198657067492604" }, "_npmUser": { "name": "chad3814", "email": "chad@chad-cat-lore-eddie.com" }, "_npmVersion": "3.9.5", "_phantomChildren": {}, "_requested": { "raw": "cssstyle@>= 0.2.37 < 0.3.0", "scope": null, "escapedName": "cssstyle", "name": "cssstyle", "rawSpec": ">= 0.2.37 < 0.3.0", "spec": ">=0.2.37 <0.3.0", "type": "range" }, "_requiredBy": [ "/jsdom" ], "_resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.37.tgz", "_shasum": "541097234cb2513c83ceed3acddc27ff27987d54", "_shrinkwrap": null, "_spec": "cssstyle@>= 0.2.37 < 0.3.0", "_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jsdom", "bugs": { "url": "https://github.com/chad3814/CSSStyleDeclaration/issues" }, "contributors": [ { "name": "Nikita Vasilyev", "email": "me@elv1s.ru" }, { "name": "Davide P. Cervone" }, { "name": "Forbes Lindesay" } ], "dependencies": { "cssom": "0.3.x" }, "description": "CSSStyleDeclaration Object Model implementation", "devDependencies": { "babel-generator": "~6.11.4", "babel-traverse": "~6.13.0", "babel-types": "~6.13.0", "babylon": "~6.8.4", "nodeunit": "~0.8.0", "resolve": "~1.1.7" }, "directories": { "lib": "./lib" }, "dist": { "shasum": "541097234cb2513c83ceed3acddc27ff27987d54", "tarball": "https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.37.tgz" }, "gitHead": "5c51d1657f8b693d46744e05239c24ae03be57e5", "homepage": "https://github.com/chad3814/CSSStyleDeclaration", "keywords": [ "CSS", "CSSStyleDeclaration", "StyleSheet" ], "license": "MIT", "main": "./lib/CSSStyleDeclaration.js", "maintainers": [ { "name": "Chad Walker", "email": "chad@chad-cat-lore-eddie.com", "url": "https://github.com/chad3814" } ], "name": "cssstyle", "optionalDependencies": {}, "readme": "CSSStyleDeclaration\n===================\n\nCSSStyleDeclaration is a work-a-like to the CSSStyleDeclaration class in Nikita Vasilyev's [CSSOM](https://github.com/NV/CSSOM). I made it so that when using [jQuery in node](https://github.com/tmtk75/node-jquery) setting css attributes via $.fn.css() would work. node-jquery uses [jsdom](https://github.com/tmpvar/jsdom) to create a DOM to use in node. jsdom uses CSSOM for styling, and CSSOM's implementation of the [CSSStyleDeclaration](http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration) doesn't support [CSS2Properties](http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSS2Properties), which is how jQuery's [$.fn.css()](http://api.jquery.com/css/) operates.\n\n\nWhy not just issue a pull request?\n----\nWell, NV wants to keep CSSOM fast (which I can appreciate) and CSS2Properties aren't required by the standard (though every browser has the interface). So I figured the path of least resistence would be to just modify this one class, publish it as a node module (that requires CSSOM) and then make a pull request of jsdom to use it.\n\nHow do I test this code?\n---\n`npm test` should do the trick, assuming you have the dev dependencies installed:\n> ```\n> $ npm test\n>\n> tests\n> ✔ Verify Has Properties\n> ✔ Verify Has Functions\n> ✔ Verify Has Special Properties\n> ✔ Test From Style String\n> ✔ Test From Properties\n> ✔ Test Shorthand Properties\n> ✔ Test width and height Properties and null and empty strings\n> ✔ Test Implicit Properties\n> ```\n\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/chad3814/CSSStyleDeclaration.git" }, "scripts": { "prepublish": "node ./scripts/generate_properties.js", "test": "./scripts/run_tests.sh" }, "version": "0.2.37" }