Comparing version 1.0.13 to 1.0.14
{ | ||
"name": "sheetjs", | ||
"description": "Easily create and manipulate CSSStyleDeclarations with javascript.", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "CSSStyleDeclaration", |
@@ -49,2 +49,22 @@ # SheetJS [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] | ||
## Advanced Usage | ||
```javascript | ||
import StyleSheet from 'sheetjs/StyleSheet'; | ||
const styleSheet = new StyleSheet({ | ||
'html, body': { | ||
margin: 0, | ||
padding: 0 | ||
}, | ||
'.my-el': { | ||
backgroundColor: 'green' | ||
}, | ||
'.my-el:hover': { | ||
backgroundColor: 'blue' | ||
} | ||
}); | ||
``` | ||
## API | ||
@@ -54,4 +74,2 @@ | ||
import StyleSheet from 'sheetjs/StyleSheet'; | ||
// or | ||
const StyleSheet = window.sheetjs.StyleSheet; | ||
@@ -58,0 +76,0 @@ const styleSheet = new StyleSheet(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1486998
122