Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 22-Nov-2021 | - | ||||
.nyc_output/ | H | 22-Nov-2021 | - | 1 | 1 | |
LICENSE | H A D | 22-Nov-2021 | 1.5 KiB | 29 | 22 | |
README.md | H A D | 22-Nov-2021 | 783 | 29 | 18 | |
package.json | H A D | 22-Nov-2021 | 1.2 KiB | 42 | 41 |
README.md
1# hyphenate-style-name 2 3[![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) 4 5Hyphenates a camelcased CSS property name. For example: 6 7- `backgroundColor` => `background-color` 8- `MozTransition` => `-moz-transition` 9- `msTransition` => `-ms-transition` 10- `color` => `color` 11 12# Installation 13 14```bash 15$ npm install --save hyphenate-style-name 16``` 17 18# Usage 19 20```js 21var hyphenateStyleName = require('hyphenate-style-name') 22 23console.log(hyphenateStyleName('MozTransition')) // -moz-transition 24``` 25 26# License 27 28BSD-3-Clause licensed. See LICENSE. 29