Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "to-style", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Convert style objects to style strings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,2 +53,22 @@ toStyle | ||
You can also get your styles in camel-case, just pass a config object as a second argument to ```toStyleObject```, with ```camelize: true``` | ||
Example: | ||
```js | ||
toStyleObject({ | ||
padding: { | ||
top: 10 | ||
}, | ||
'border-width': 20 | ||
}, { camelize: true}) | ||
/** | ||
* { | ||
* paddingTop: '10px', | ||
* borderWidth: '20px' | ||
* } | ||
*/ | ||
``` | ||
## Usage in browser | ||
@@ -55,0 +75,0 @@ |
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
61523
81