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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.03,402,391latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.03,402,391
1.0.5117,902
1.0.41,715,518
1.0.3160,505
1.0.256,758
1.0.19
1.0.03

Package Sidebar

Install

npm i hyphenate-style-name

Weekly Downloads

5,453,086

Version

1.1.0

License

BSD-3-Clause

Unpacked Size

5.01 kB

Total Files

6

Last publish

Collaborators

  • rexxars