1.0.0 • Published 10 years ago
prefix v1.0.0
prefix
Add vendor prefixes to a CSS attribute.
Installation
npm install prefixThen in your app:
var prefix = require('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.
prefix('transform') // => WebkitTransform
prefix('color') // => colordash(key)
create a dasherize version of a vendor prefix
prefix.dash('transform') // => -webkit-transform
prefix.dash('color') // => colorRunning the tests
Just run make and navigate your browser to the test directory.