hyphenate-style-name
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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.

Package Sidebar

Install

npm i hyphenate-style-name

Weekly Downloads

4,633,149

Version

1.1.0

License

BSD-3-Clause

Unpacked Size

5.01 kB

Total Files

6

Last publish

Collaborators

  • rexxars