dom-class-styles

1.0.0 • Public • Published

dom-class-styles

Install

npm install --save dom-class-styles

Example

var classStyles = require('dom-class-styles');
var styles = classStyles('class-name');
console.log(styles.border);

About

Get the styles of a class from a style sheet in the current HTML document. If there is more than one CSS document in the page the furthest one down in the HTML will be used.

Readme

Keywords

Package Sidebar

Install

npm i dom-class-styles

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hollowdoor