Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via pnpm

clean-css 5.3.3

A well-tested CSS minifier
Package summary
Share
0
issues
2
licenses
1
MIT
1
BSD-3-Clause
Package created
28 Feb 2011
Version published
30 Nov 2023
Maintainers
2
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
clean-css@5.3.3

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map@0.6.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of clean-css 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
source-map0.6.1194.96 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does clean-css do?

Clean-css is a well-tested and efficient CSS optimizer for Node.js and any modern web browser. It is designed to save bandwidth and ensure faster page load times by minifying your CSS code. Based on efficiency tests, it ranks among the best available tools for this purpose.

How do you use clean-css?

You can use clean-css by installing it from npm using the npm install --save-dev clean-css command.

Here is an example of how to use clean-css in your code:

var CleanCSS = require('clean-css');
var input = 'a{font-weight:bold;}';
var options = { /* options */ };
var output = new CleanCSS(options).minify(input);

In this snippet, CleanCSS is first imported into the file. Then, a raw CSS string is saved to the input variable and options for clean-css are defined in options. Finally, the CleanCSS object is used to minify the CSS string by calling new CleanCSS(options).minify(input); The minified CSS is then stored in the output variable.

Where are the clean-css docs?

You can find the clean-css documentation in the GitHub repository at https://github.com/clean-css/clean-css. It includes a detailed explanation of each feature, complete with usage instructions and examples.

Please note that while the package's readme does provide a lot of information about its usage and configuration, it's important to also check out the Github repository directly, as it provides a richer source of useful resources such as the FAQ section and numerous code examples.