hyphenate-style-name

Hyphenates a camelcased CSS property name

BSD-3-Clause 7 个版本
安装
npm install hyphenate-style-name
yarn add hyphenate-style-name
pnpm add hyphenate-style-name
bun add hyphenate-style-name
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.

版本列表
1.1.0 2024-06-17
1.0.5 2024-05-14
1.0.4 2020-07-13
1.0.3 2019-01-28
1.0.2 2016-10-24
1.0.1 2016-04-12
1.0.0 2015-08-03