Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-style

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-style - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc