npm

css-key

1.0.0 • Public • Published

css-key Build Status

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

Package Sidebar

Install

npm i css-key

Weekly Downloads

79

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andytjoslin