Files
hackathon-v-escape-4ff8b5a6…/frontend/node_modules/hyphenate-style-name
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00
..
2026-05-23 08:59:34 -06:00
2026-05-23 08:59:34 -06:00
2026-05-23 08:59:34 -06:00
2026-05-23 08:59:34 -06:00
2026-05-23 08:59:34 -06:00
2026-05-23 08:59:34 -06:00

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.