prefix
Add vendor prefixes to a CSS attribute.
Installation
npm install prefix
Then in your app:
var prefix =
API
prefix(key)
Prefix key
. This function memoizes its results so you don't need to worry about any performance issues, just treat it like a map.
// => WebkitTransform // => color
dash(key)
create a dasherize version of a vendor prefix
prefix // => -webkit-transformprefix // => color
Running the tests
Just run make
and navigate your browser to the test directory.