Prefix style objects based on browser version
$ npm install @f/prefix-style
var prefixStyle = require('@f/prefix-style')
var prefixer = prefixStyle('chrome', 34)
prefixStyle({transform: 'scale(2, 0.5)'}) // -> {
// transform: 'scale(2, 0.5)',
// webkitTransform:
// }
browser
- Name of the browserversion
- Version number of the browser you want to prefix for
Returns: A partially applied function that accepts a style object: prefix(style) -> style
and returns the same object, modified to have the proper prefixes set for the browser specified by browser
and version
.
MIT