postcss-camel-case

1.0.1 • Public • Published

postcss-camel-case

PostCSS plugin to convert CSS selector names to camelCase

Turns .block_element--modifier into .blockElementModifier. Basically the plugin does convert any class names with -, _ punctuations into camelCase style.

Warnings

Removing - and _ characters from CSS class names may cause naming conflits:

.my-class -> .myClass
.my_class -> .myClass

Why?

Because camel cased properties feels more natural in JavaScript. It is mainly built for CSS Modules.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    172
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    172
  • 1.0.0
    0

Package Sidebar

Install

npm i postcss-camel-case

Weekly Downloads

172

Version

1.0.1

License

MIT

Last publish

Collaborators

  • roman01la