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

postcss-minify-params

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-minify-params

Minify at-rule params with PostCSS

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.3M
decreased by-42.66%
Maintainers
2
Weekly downloads
 
Created

What is postcss-minify-params?

The postcss-minify-params package is a tool used to minify parameters in CSS. It's a plugin for PostCSS, a tool for transforming CSS with JavaScript. This package helps in reducing the size of CSS files by optimizing the parameters passed to functions and mixins within the CSS, which can lead to faster load times for web pages.

What are postcss-minify-params's main functionalities?

Minifying CSS function parameters

This feature allows the minification of parameters passed to CSS functions, such as `transition`, `transform`, etc., by removing unnecessary whitespace and optimizing numerical values.

const postcss = require('postcss');
const minifyParams = require('postcss-minify-params');

postcss([minifyParams()]).process('a{transition: all 0.5s ease-in-out;}').then(result => {
  console.log(result.css);
  // Output: a{transition:all .5s ease-in-out}
});

Other packages similar to postcss-minify-params

Keywords

FAQs

Package last updated on 16 Aug 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