https://github.com/stevenvachon/camelcase-css
Convert a kebab-cased CSS property into a camelCased DOM property.
https://github.com/stevenvachon/camelcase-css
camelcase css nodejs
Last synced: 3 months ago
JSON representation
Convert a kebab-cased CSS property into a camelCased DOM property.
- Host: GitHub
- URL: https://github.com/stevenvachon/camelcase-css
- Owner: stevenvachon
- License: mit
- Created: 2015-08-28T13:11:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T18:04:50.000Z (over 3 years ago)
- Last Synced: 2026-02-26T15:27:12.883Z (4 months ago)
- Topics: camelcase, css, nodejs
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 15
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# camelcase-css [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Convert a kebab-cased CSS property into a camelCased DOM property.
## Installation
[Node.js](http://nodejs.org/) `>= 6` is required. Type this at the command line:
```shell
npm install camelcase-css
```
## Usage
```js
const camelCaseCSS = require('camelcase-css');
camelCaseCSS('-webkit-border-radius'); //-> WebkitBorderRadius
camelCaseCSS('-moz-border-radius'); //-> MozBorderRadius
camelCaseCSS('-ms-border-radius'); //-> msBorderRadius
camelCaseCSS('border-radius'); //-> borderRadius
```
[npm-image]: https://img.shields.io/npm/v/camelcase-css.svg
[npm-url]: https://npmjs.org/package/camelcase-css
[travis-image]: https://img.shields.io/travis/stevenvachon/camelcase-css.svg
[travis-url]: https://travis-ci.org/stevenvachon/camelcase-css