Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-camel-case

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-camel-case

JSS plugin that allows to write camel cased rule properties

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is jss-camel-case?

The jss-camel-case npm package is a plugin for JSS (JavaScript Style Sheets) that converts camelCased property names to dash-separated (kebab-case) names. This is useful for writing CSS-in-JS styles in a more JavaScript-friendly syntax while ensuring compatibility with CSS standards.

What are jss-camel-case's main functionalities?

Convert camelCase to kebab-case

This feature allows you to write styles in camelCase and have them automatically converted to kebab-case. In the example, `backgroundColor` and `fontSize` are converted to `background-color` and `font-size` respectively.

const jss = require('jss').default;
const camelCase = require('jss-camel-case').default;

jss.use(camelCase());

const styles = {
  button: {
    backgroundColor: 'blue',
    fontSize: '14px'
  }
};

const sheet = jss.createStyleSheet(styles).attach();
console.log(sheet.toString());

Other packages similar to jss-camel-case

Keywords

FAQs

Package last updated on 08 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc