Socket
Socket
Sign inDemoInstall

to-style

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

dist/index.js

6

index.js
'use strict'
module.exports = {
prefixProperties: require('./prefixProperties') ,
object: require('./toStyleObject'),
string: require('./toStyleString')
prefixProperties: require('./src/prefixProperties') ,
object: require('./src/toStyleObject'),
string: require('./src/toStyleString')
}
{
"name": "to-style",
"version": "1.0.1",
"version": "1.0.2",
"description": "Convert style objects to style strings",
"main": "index.js",
"scripts": {
"build": "browserify --standalone toStyle index.js -o dist/toStyle.js",
"test": "make test",

@@ -8,0 +9,0 @@ "test-w": "make test-w",

@@ -53,3 +53,10 @@ toStyle

## Usage in browser
In browser, make sure you add ```dist/toStyle.js``` to your page. This exposes a global ```toStyle``` variable.
```js
var toStyleString = toStyle.string
var toStyleObject = toStyle.object
```
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc