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

postcss-normalize-whitespace

Package Overview
Dependencies
Maintainers
4
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.

  • 4.0.0-nightly.2020.8.10
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
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 10 Aug 2020

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