prefix
prefix a css attribute
Last updated 11 years ago by jkroso .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install prefix 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

8 Versions

  • 1.0.0                                ...           10 years ago
  • 0.2.6                                ...           10 years ago
  • 0.2.5                                ...           10 years ago
  • 0.2.4                                ...           10 years ago
  • 0.2.3                                ...           11 years ago
  • 0.2.2                                ...           11 years ago
  • 0.2.1                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 1
This Week 4
This Month 12
Last Day 2
Last Week 8
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |