camelcase-css

Convert a kebab-cased CSS property into a camelCased DOM property.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
camelcase-css
2.0.14 years ago7 years agoMinified + gzip package size for camelcase-css in KB

Readme

Convert a kebab-cased CSS property into a camelCased DOM property.

Installation

Node.js >= 6 is required. Type this at the command line:
npm install camelcase-css

Usage

const camelCaseCSS = require('camelcase-css');

camelCaseCSS('-webkit-border-radius');  //-> WebkitBorderRadius
camelCaseCSS('-moz-border-radius');     //-> MozBorderRadius
camelCaseCSS('-ms-border-radius');      //-> msBorderRadius
camelCaseCSS('border-radius');          //-> borderRadius