You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
2 years ago | |
---|---|---|
.. | ||
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.cjs.js | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
README.md
hyphenate-style-name
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.