You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 年之前
12345678910111213141516171819202122232425262728
  1. # hyphenate-style-name
  2. [![npm version](http://img.shields.io/npm/v/hyphenate-style-name.svg?style=flat-square)](http://browsenpm.org/package/hyphenate-style-name)[![Build Status](http://img.shields.io/travis/rexxars/hyphenate-style-name/master.svg?style=flat-square)](https://travis-ci.org/rexxars/hyphenate-style-name)
  3. Hyphenates a camelcased CSS property name. For example:
  4. - `backgroundColor` => `background-color`
  5. - `MozTransition` => `-moz-transition`
  6. - `msTransition` => `-ms-transition`
  7. - `color` => `color`
  8. # Installation
  9. ```bash
  10. $ npm install --save hyphenate-style-name
  11. ```
  12. # Usage
  13. ```js
  14. var hyphenateStyleName = require('hyphenate-style-name')
  15. console.log(hyphenateStyleName('MozTransition')) // -moz-transition
  16. ```
  17. # License
  18. BSD-3-Clause licensed. See LICENSE.