JSPM

css-key

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 60
  • Score
    100M100P100Q53828F
  • License MIT

Transform a camelCase key to a valid css property key

Package Exports

  • css-key

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (css-key) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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