0.1.0 • Published 12 years ago
vendor-prefix v0.1.0
vendor-prefix

add a vendor prefix to a css attribute
This is a fork from https://github.com/jkroso/prefix which is a fork of https://github.com/pgherveou/prefix
Usage
$ npm install vendor-prefixvar prefix = require('vendor-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'); // colorThrow an error if the given string is not a css property.
dash(key)
create a dasherize version of a vendor prefix
prefix.dash('transform'); // -webkit-transform
prefix.dash('color'); // color
prefix.dash('background-color'); // background-colorThrow an error if the given string is not a css property.
Run the tests
$ npm install
$ npm run buildopen a browser at test/index.html
0.1.0
12 years ago