computed-style
Get the computed styles of a DOM element in a cross browser consistent manner
Install
npm install computed-styles
Usage
Get computed styles
; // returns computed styles as an object
Convert computed styles to inline styles
; var node = document;;
Copy computed styles to another element
; var source = document;var target = document;;
See API
License
MIT © J. Harshbarger