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

postcss-normalize-whitespace

Package Overview
Dependencies
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-normalize-whitespace

Trim whitespace inside and around CSS rules & declarations.

  • 5.0.0-rc.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11M
increased by6.32%
Maintainers
7
Weekly downloads
 
Created

What is postcss-normalize-whitespace?

The postcss-normalize-whitespace npm package is a PostCSS plugin designed to normalize and minimize the whitespace in your CSS. It helps in reducing the file size and improving the readability of the CSS by consistently formatting the whitespace.

What are postcss-normalize-whitespace's main functionalities?

Minifying CSS

This feature allows you to compress your CSS by removing unnecessary whitespace, which can include spaces, tabs, and newlines that are not required for the CSS to function properly.

const postcss = require('postcss');
const normalizeWhitespace = require('postcss-normalize-whitespace');

postcss([normalizeWhitespace]).process('h1 {  color: red; }').then(result => {
  console.log(result.css); // Output: 'h1{color:red}'
});

Other packages similar to postcss-normalize-whitespace

Keywords

FAQs

Package last updated on 19 Feb 2021

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