New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jss-vendor-prefixer

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-vendor-prefixer - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

.babelrc

6

history.md

@@ -0,1 +1,7 @@

## 0.3.0 / 2015-09-21
- migrate to es6
- move examples to jss-examples repository
- simplify packaging
## 0.2.0 / 2015-02-08

@@ -2,0 +8,0 @@

43

package.json
{
"name": "jss-vendor-prefixer",
"description": "Vendor prefixer for jss",
"version": "0.2.2",
"description": "JSS plugin that handles vendor prefixes on the browser",
"version": "0.3.0",
"author": {

@@ -20,21 +20,36 @@ "name": "Oleg Slobodskoi",

"engines": {},
"scripts": {},
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"scripts": {
"all": "npm run lint && npm run build",
"test": "opener ./test/index.html",
"build": "npm run clean && npm run build:lib && npm run build:max && npm run build:min",
"clean": "rimraf ./lib/*",
"build:lib": "babel src --out-dir lib",
"build:max": "NODE_ENV=development webpack src/index.js dist/jss-vendor-prefixer.js",
"build:min": "NODE_ENV=production webpack src/index.js dist/jss-vendor-prefixer.min.js",
"lint": "eslint ./src",
"prepublish": "npm run all && git push --tags"
},
"license": "MIT",
"dependencies": {
"css-vendor": "^0.2.0"
},
"main": "./lib/index.js",
"devDependencies": {
"browserify": "6.0.3",
"babel": "^5.6.14",
"babel-core": "^5.6.20",
"babel-eslint": "^3.1.23",
"babel-loader": "^5.3.1",
"eslint": "^0.24.1",
"eslint-config-airbnb": "^0.0.6",
"eslint-config-jss": "^0.1.0",
"eslint-plugin-react": "^2.7.0",
"jss": "^2.3.4",
"opener": "^1.4.1",
"qunitjs": "1.15.0",
"xpkg": "0.2.x",
"jss": "^2.1.0"
"rimraf": "^2.4.3",
"webpack": "^1.11.0"
},
"peerDependencies": {
"jss": "^2.1.0"
"jss": "^2.3.4"
}
}
}

@@ -1,36 +0,55 @@

## Vendor prefixer plugin for JSS
![JSS logo](https://avatars1.githubusercontent.com/u/9503099?v=3&s=60)
This vendor prefixer knows which properties and values are supported in the current runtime and changes only whats required. The best thing is - you don't need to download all of them.Also it is very fast, all checks are cached. [See example.](http://jsstyles.github.io/jss-vendor-prefixer/examples/property/index.html)
## JSS plugin that handles vendor prefixes on the browser
This vendor prefixer knows which properties and values are supported in the
current runtime and changes only whats required.
The best thing is - you don't need to download all of them.
Also it is very fast, all checks are cached.
[Demo](http://jsstyles.github.io/jss-examples/index.html#plugin-jss-vendor-prefixer) -
[JSS](https://github.com/jsstyles/jss)
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/jsstyles/jss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Usage example
```javascript
{
'.container': {
transform: 'translateX(100px)'
}
}
import jss from 'jss'
import vendorPrefixer from 'jss-vendor-prefixer'
jss.use(vendorPrefixer)
const styleSheet = jss.createStyleSheet({
container: {
transform: 'translateX(100px)'
}
})
```
```javascript
console.log(styleSheet.toString())
```
```css
.container {
transform: -webkit-translateX(100px);
.jss-0-0 {
transform: -webkit-translateX(100px);
}
```
## Register plugin
```javascript
var jss = require('jss')
var vendorPrefixer = require('jss-vendor-prefixer')
jss.use(vendorPrefixer)
console.log(styleSheet.classes)
```
```javascript
{ container: "jss-0-0" }
```
## Run tests
### Locally
```bash
npm i
open test/local.html
npm run test
```
### From github
[Tests](https://jsstyles.github.com/jss-vendor-prefixer/test)

@@ -37,0 +56,0 @@ ## License

Sorry, the diff of this file is not supported yet

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