prefix a css attribute


add a vendor prefix to a css attribute

npm install prefix

then in your app:

var prefix = require('prefix')

Prefix key. This function memoizes its results so you don't need to worry about any performance issues, just treat it like a map.

prefix('transform') // => WebkitTransform 
prefix('color') // => color 

create a dasherize version of a vendor prefix

prefix.dash('transform') // => -webkit-transform 
prefix.dash('color') // => color 

Just run make and navigate your browser to the test directory.