Hyphenates a camelcased CSS property name. For example:
backgroundColor
=>background-color
MozTransition
=>-moz-transition
msTransition
=>-ms-transition
color
=>color
$ npm install --save hyphenate-style-name
import hyphenateStyleName from 'hyphenate-style-name'
console.log(hyphenateStyleName('MozTransition')) // -moz-transition
BSD-3-Clause licensed. See LICENSE.