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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.035latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.035

Package Sidebar

Install

npm i css-key

Weekly Downloads

35

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andytjoslin