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

jss-plugin-expand

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-plugin-expand

JSS plugin that gives you a better syntax than CSS.

  • 10.9.1-alpha.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is jss-plugin-expand?

The jss-plugin-expand package is a plugin for JSS (JavaScript Style Sheets) that allows you to write more concise and readable styles by expanding shorthand properties into their longhand equivalents. This can simplify the process of writing styles and make your code more maintainable.

What are jss-plugin-expand's main functionalities?

Shorthand properties expansion

This feature allows you to use shorthand properties like padding and margin, which will be expanded into their longhand equivalents. For example, 'padding: 10px 20px' will be expanded to 'padding-top: 10px; padding-right: 20px; padding-bottom: 10px; padding-left: 20px;'.

{
  "button": {
    "padding": "10px 20px",
    "margin": "5px 10px"
  }
}

Array values for properties

This feature allows you to use arrays to define properties, which can be more readable and easier to manage. For example, 'border: ["1px", "solid", "black"]' will be expanded to 'border-width: 1px; border-style: solid; border-color: black;'.

{
  "container": {
    "border": ["1px", "solid", "black"]
  }
}

Multiple values for properties

This feature allows you to specify multiple values for a single property using an array. For example, 'background: ["url(image.png)", "no-repeat", "center"]' will be expanded to 'background-image: url(image.png); background-repeat: no-repeat; background-position: center;'.

{
  "box": {
    "background": ["url(image.png)", "no-repeat", "center"]
  }
}

Other packages similar to jss-plugin-expand

Keywords

FAQs

Package last updated on 23 Apr 2022

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