您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit 3 年前
..
.nyc_output First Commit 3 年前
.prettierrc First Commit 3 年前
LICENSE First Commit 3 年前
README.md First Commit 3 年前
index.cjs.js First Commit 3 年前
index.js First Commit 3 年前
package.json First Commit 3 年前
yarn.lock First Commit 3 年前

README.md

hyphenate-style-name

npm versionBuild Status

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

var hyphenateStyleName = require('hyphenate-style-name')

console.log(hyphenateStyleName('MozTransition')) // -moz-transition

License

BSD-3-Clause licensed. See LICENSE.