Skip to content

peutetre/vendor-prefix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vendor-prefix Build Status Mocha Saucelabs Tests Status

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-prefix
var 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'); // color

Throw 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-color

Throw an error if the given string is not a css property.

Run the tests

$ npm install
$ npm run build
Selenium Tests Status

open a browser at test/index.html

About

prefix dom style

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%