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

postcss-convert-values

Package Overview
Dependencies
Maintainers
0
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-convert-values

Convert values with PostCSS (e.g. ms -> s)

  • 7.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9M
decreased by-53.71%
Maintainers
0
Weekly downloads
 
Created

What is postcss-convert-values?

The postcss-convert-values npm package is designed to optimize CSS size by converting values to use shorter forms where possible. It can reduce CSS file size by converting colors to their shorter hexadecimal or named format, transforming units, and simplifying values without changing their meaning.

What are postcss-convert-values's main functionalities?

Converting Length Units

Converts length values to use the shortest unit representation, removing units from zero values.

"body { margin: 0px; }" -> "body { margin: 0; }"

Converting Colors

Optimizes color values by converting them to shorter named colors or hexadecimal values where possible.

".example { color: #ffffff; }" -> ".example { color: #fff; }"

Simplifying Values

Removes unnecessary decimal places from numerical values to simplify and shorten them.

".container { padding: 50.0px 20.0px; }" -> ".container { padding: 50px 20px; }"

Other packages similar to postcss-convert-values

Keywords

FAQs

Package last updated on 05 Jul 2024

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