{"_id":"get-style-property","_rev":"3186002","name":"get-style-property","description":"Gets the current value of a style property for a given DOM element.","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2023-12-26T09:31:28.000Z","created":"2013-04-28T01:49:34.412Z","0.1.1":"2013-07-29T20:50:23.354Z","0.1.0":"2013-04-28T01:49:34.412Z"},"users":{},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/get-style-property.git"},"versions":{"0.1.1":{"name":"get-style-property","version":"0.1.1","description":"Gets the current value of a style property for a given DOM element.","main":"get-style-property.js","scripts":{"test":"browserify test/*.js > test/bundle.js && open test/index.html"},"repository":{"type":"git","url":"git://github.com/thlorenz/get-style-property.git"},"homepage":"https://github.com/thlorenz/get-style-property","dependencies":{},"devDependencies":{"tape":"~0.3.3","browserify":"~2.25.1"},"keywords":["style","property","browser","browserify","query","dom"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/get-style-property/issues"},"_id":"get-style-property@0.1.1","dist":{"shasum":"407f83613de630bdd438d9d2274eb5c479b06ade","size":3044,"noattachment":false,"key":"/get-style-property/-/get-style-property-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-style-property/download/get-style-property-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"_cnpmcore_publish_time":"2021-12-22T18:09:09.836Z","publish_time":1375131023354,"_cnpm_publish_time":1375131023354},"0.1.0":{"name":"get-style-property","version":"0.1.0","description":"Gets the current value of a style property for a given DOM element.","main":"get-style-property.js","scripts":{"test":"browserify test/*.js > test/bundle.js && open test/index.html"},"repository":{"type":"git","url":"git://github.com/thlorenz/get-style-property.git"},"homepage":"https://github.com/thlorenz/get-style-property","dependencies":{},"devDependencies":{"tape":"~0.3.3"},"keywords":["style","property","browser","browserify","query","dom"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","firefox/3..5","firefox/19..nightly","chrome/4..7","chrome/24..canary","opera/10..next","safari/4..latest","iphone/6","ipad/6"]},"readmeFilename":"README.md","_id":"get-style-property@0.1.0","dist":{"shasum":"ec97e6f28e79471f89275bd0f87acb8d7ae75f49","size":3075,"noattachment":false,"key":"/get-style-property/-/get-style-property-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-style-property/download/get-style-property-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"_cnpmcore_publish_time":"2021-12-22T18:09:08.928Z","publish_time":1367113774412,"_cnpm_publish_time":1367113774412}},"readme":"# get-style-property\n\nGets the current value of a style property for a given DOM element.\n\n[![browser support](https://ci.testling.com/thlorenz/get-StyleProperty.png)](https://ci.testling.com/thlorenz/get-StyleProperty)\n\n```js\nvar foo              =  document.querySelector('.foo')\n  , getStyleProperty =  require('get-style-property');\n\n// assuming we applied css: \".foo { min-height: 20px }\"\n\nconsole.log(getStyleProperty(foo, 'min-height')); // => 20px\n```\n\n## API\n\n```js\n/**\n * Gets the current value of a style property for a given DOM element.\n *\n * @function\n * @param el {Object} The DOM element.\n * @param propName {String} The name of the property.\n * @return {String} The current value of the element's style and given property. \n */\ngetStyleProperty(el, propName)\n```\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/thlorenz/get-style-property","bugs":{"url":"https://github.com/thlorenz/get-style-property/issues"},"license":"MIT"}