rexxars/hyphenate-style-name

Hyphenates a camelcased CSS property name

JavaScript

35

51 commits

updated Nov 20, 2024

See the code

README

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.

rexxars/hyphenate-style-name

Hyphenates a camelcased CSS property name

JavaScript

35

51 commits

updated Nov 20, 2024

See the code

README

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.

Project health

Overall

2.7/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Latest release

1.1.0 · Jun 17, 2024

Releases this year

0