hyphenate-style-name
Hyphenates a camelcased CSS property name
Last updated 5 years ago by rexxars .
BSD-3-Clause · Repository · Bugs · Original npm
$ cnpm install hyphenate-style-name 
SYNC missed versions from official npm registry.

hyphenate-style-name

npm versionnpmnpm bundle sizeBuild Status

Hyphenates a camelcased CSS property name. For example:

  • backgroundColor => background-color
  • MozTransition => -moz-transition
  • msTransition => -ms-transition
  • color => color

Installation

$ npm install --save hyphenate-style-name

Usage

var hyphenateStyleName = require('hyphenate-style-name')

console.log(hyphenateStyleName('MozTransition')) // -moz-transition

License

BSD-3-Clause licensed. See LICENSE.

Current Tags

  • 1.0.4                                ...           latest (5 years ago)

2 Versions

  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org