Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hyphenate-style-name

rexxars20.7mBSD-3-Clause1.1.0TypeScript support: included

Hyphenates a camelcased CSS property name

hyphenate, style, css, camelcase

readme

hyphenate-style-name

npm versionnpmnpm bundle size

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

import hyphenateStyleName from 'hyphenate-style-name'

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

License

BSD-3-Clause licensed. See LICENSE.

changelog

📓 Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.1.0 (2024-06-17)

Features

  • support typescript definitions out of the box (#17) (70cd004)

Bug Fixes

1.0.6 (2024-05-14)

Bug Fixes

  • deps: upgrade eslint dev dependencies (483152e)

1.0.5 (2024-05-14)

Bug Fixes

  • prepare release automation (644b0ab)