hyphenate-style-name
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/hyphenate-style-name package

1.0.5 • 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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    654,616
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    654,616
  • 1.0.4
    3,386,042
  • 1.0.3
    211,010
  • 1.0.2
    49,133
  • 1.0.1
    30
  • 1.0.0
    1

Package Sidebar

Install

npm i hyphenate-style-name

Weekly Downloads

4,300,832

Version

1.0.5

License

BSD-3-Clause

Unpacked Size

4.82 kB

Total Files

5

Last publish

Collaborators

  • rexxars