1. hyphenate-style-name
Hyphenates a camelcased CSS property name
hyphenate-style-name
Package: hyphenate-style-name
Created by: rexxars
Last modified: Sat, 18 Jun 2022 23:41:09 GMT
Version: 1.0.4
License: BSD-3-Clause
Downloads: 16,988,456
Repository: https://github.com/rexxars/hyphenate-style-name

Install

npm install hyphenate-style-name
yarn add hyphenate-style-name

hyphenate-style-name

npm versionnpmnpm bundle sizeBuild Status

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

 var hyphenateStyleName = require('hyphenate-style-name')

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

License

BSD-3-Clause licensed. See LICENSE.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin