mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
fd22b0bf58
V2 (Laravel re-make) |
||
---|---|---|
.. | ||
index-es5.js | ||
index.js | ||
license | ||
package.json | ||
README.md |
camelcase-css
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