# hyphenate-style-name

> Hyphenates a camelcased CSS property name

Latest version **1.1.0** (published 2024-06-17) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install hyphenate-style-name
pnpm add hyphenate-style-name
yarn add hyphenate-style-name
bun add hyphenate-style-name
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2024-06-17 |
| First published | 2015-08-03 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | Espen Hovlandsdal |
| Maintainers | rexxars |
| Keywords | hyphenate, style, css, camelcase |

## Links

- npm: https://www.npmjs.com/package/hyphenate-style-name
- Repository: https://github.com/rexxars/hyphenate-style-name
- Homepage: https://github.com/rexxars/hyphenate-style-name#readme
- Issues: https://github.com/rexxars/hyphenate-style-name/issues
- npm.io page: https://npm.io/package/hyphenate-style-name

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 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

## README

# hyphenate-style-name

[![npm version](http://img.shields.io/npm/v/hyphenate-style-name.svg?style=flat-square)](https://www.npmjs.com/package/hyphenate-style-name)[![npm](https://img.shields.io/npm/dm/hyphenate-style-name.svg?style=flat-square)](https://www.npmjs.com/package/hyphenate-style-name)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/hyphenate-style-name.svg?style=flat-square)](https://bundlephobia.com/result?p=hyphenate-style-name)

Hyphenates a camelcased CSS property name. For example:

- `backgroundColor` => `background-color`
- `MozTransition` => `-moz-transition`
- `msTransition` => `-ms-transition`
- `color` => `color`

# Installation

```bash
$ npm install --save hyphenate-style-name
```

# Usage

```js
import hyphenateStyleName from 'hyphenate-style-name'

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

# License

BSD-3-Clause licensed. See LICENSE.

---
_Source: https://npm.io/package/hyphenate-style-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
