Skip to content

jkroso/prefix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

prefix dom style

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.9%
  • HTML 13.3%
  • Makefile 4.8%