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

hyphenate-style-name

npm versionnpmnpm bundle size

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

import hyphenateStyleName from 'hyphenate-style-name'

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

License

BSD-3-Clause licensed. See LICENSE.

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

7 Versions

  • 1.1.0                                ...           2 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           8 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 22
Today 0
This Week 0
This Month 11
Last Day 0
Last Week 3
Last Month 1
Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE