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.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| index.cjs.js | 5 years ago | |
| index.js | 5 years ago | |
| package.json | 5 years ago | |
README.md
hyphenate-style-name
Hyphenates a camelcased CSS property name. For example:
backgroundColor=>background-colorMozTransition=>-moz-transitionmsTransition=>-ms-transitioncolor=>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.