Skip to content
prefix dom style
JavaScript HTML Makefile
Pull request Compare This branch is 30 commits ahead of pgherveou:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.gitignore
LICENSE
Makefile
README.md
component.json
index.js
package.json

README.md

prefix

Add vendor prefixes to a CSS attribute.

Installation

npm install 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.

Something went wrong with that request. Please try again.