spaceout/site/frontend/node_modules/hyphenate-style-name
2020-12-12 14:43:35 -05:00
..
index.cjs.js init organization 2020-12-12 14:43:35 -05:00
index.js init organization 2020-12-12 14:43:35 -05:00
LICENSE init organization 2020-12-12 14:43:35 -05:00
package.json init organization 2020-12-12 14:43:35 -05:00
README.md init organization 2020-12-12 14:43:35 -05:00

hyphenate-style-name

npm versionnpmnpm bundle sizeBuild Status

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.