compute-style

0.2.0 • Public • Published

compute-style

returns an object with style information on an element.

npm install compute-value

USAGE

It's a function that takes two parameters: the element, and the style property

 
var getCSS = require('compute-style')
 
var primitiveValue = getCSS(element, 'width').primitive.val
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    3

Package Sidebar

Install

npm i compute-style

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • johnnyscript