prefix

prefix a css attribute

npm install prefix
4 downloads in the last week
10 downloads in the last month

prefix

add a vendor prefix to a css attribute

Installation

With packin or component

$ packin add jkroso/prefix

then 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') // => color

dash(key)

create a dasherize version of a vendor prefix

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

Running the tests

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

npm loves you