• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..22-Nov-2021-

.nyc_output/H22-Nov-2021-11

LICENSEH A D22-Nov-20211.5 KiB2922

README.mdH A D22-Nov-2021783 2918

package.jsonH A D22-Nov-20211.2 KiB4241

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