Gathering detailed insights and metrics for postcss-csso-7
Gathering detailed insights and metrics for postcss-csso-7
Gathering detailed insights and metrics for postcss-csso-7
Gathering detailed insights and metrics for postcss-csso-7
npm install postcss-csso-7
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
52 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Feb 06, 2024
Latest Version
3.1.0
Package Id
postcss-csso-7@3.1.0
Unpacked Size
11.26 kB
Size
4.01 kB
File Count
7
NPM Version
6.9.0
Node Version
11.15.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
PostCSS plugin to minify CSS using CSSO (a CSS minifier with structural optimizations).
Under the hood, the plugin converts PostCSS
AST into CSSO
's AST, optimises it and converts back. The plugin uses input PostCSS
's AST nodes (or their clones) on back convertation, so the shape of original PostCSS
's nodes persists the same after compression in most cases (e.g. properties added by other plugins isn't lost). This approach makes it possible to achieve a great performance and generate source maps correctly.
The performance of postcss-csso
is approximately the same as CSSO
has itself (see CSSO
numbers in minifiers comparison table).
If you have any difficulties with the output of this plugin, please use the CSSO tracker.
npm install postcss-csso-7
1var postcss = require('postcss'); 2var csso = require('postcss-csso-7'); 3 4postcss([ 5 csso 6]) 7 .process('.a { color: #FF0000; } .b { color: rgba(255, 0, 0, 1) }') 8 .then(function(result) { 9 console.log(result.css); 10 // .a,.b{color:red} 11 });
Plugin takes the same options as compress()
method of CSSO with no exception.
1postcss([ 2 csso({ restructure: false }) 3]) 4 .process('.a { color: #FF0000; } .b { color: rgba(255, 0, 0, 1) }') 5 .then(function(result) { 6 console.log(result.css); 7 // .a{color:red}.b{color:red} 8 });
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
27 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More