css-key
v1.0.0
Published
Transform a camelCase key to a valid css property key
Downloads
199
Maintainers
Readme
css-key
Transform a key to a valid css property key
Extracted from blakeembrey/free-style
Install
$ npm install --save css-key
Usage
var cssKey = require('css-key')
cssKey('WebkitTransition')
//=> -webkit-transition
API
cssKey(jsKey)
-> cssKey
jsKey
Required
Type: string
A PascalCase or camelCase javascript key.
Returns that key transformed to a valid css property.
License
MIT © Andrew Joslin