Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

camelcase-css

2.0.1 • Public • Published

camelcase-css NPM Version Build Status

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

Install

npm i camelcase-css

DownloadsWeekly Downloads

711,094

Version

2.0.1

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • avatar