Gathering detailed insights and metrics for postcss-discard-overridden
Gathering detailed insights and metrics for postcss-discard-overridden
Gathering detailed insights and metrics for postcss-discard-overridden
Gathering detailed insights and metrics for postcss-discard-overridden
postcss-discard-overridden-nightly
PostCSS plugin to discard overridden @keyframes or @counter-style.
postcss-discard-overridden-props
PostCSS plugin, which discards overridden properties in every CSS rule
@simondud/postcss-discard-overridden-props
PostCSS plugin, which discards overridden properties in every CSS rule
A modular minifier, built on top of the PostCSS ecosystem.
npm install postcss-discard-overridden
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.5
Supply Chain
100
Quality
89.6
Maintenance
100
Vulnerability
100
License
CSS (77.38%)
JavaScript (22.16%)
Nunjucks (0.46%)
Total Downloads
2,947,435,016
Last Day
2,088,617
Last Week
11,224,284
Last Month
48,220,620
Last Year
552,412,922
MIT License
4,855 Stars
2,554 Commits
320 Forks
48 Watchers
43 Branches
111 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
Latest Version
7.0.1
Package Id
postcss-discard-overridden@7.0.1
Unpacked Size
6.43 kB
Size
2.42 kB
File Count
4
NPM Version
10.8.2
Node Version
20.19.1
Published on
May 06, 2025
Cumulative downloads
Total Downloads
Last Day
53.5%
2,088,617
Compared to previous day
Last Week
5.4%
11,224,284
Compared to previous week
Last Month
-5.1%
48,220,620
Compared to previous month
Last Year
3.2%
552,412,922
Compared to previous year
1
3
PostCSS plugin to discard overridden @keyframes
or @counter-style
.
@keyframes
or @counter-style
will be overridden by those who share the same identifiers and appear later in stylesheets. So we can discard all of them except the last one. When defined inside a @media
or @supports
rule, @keyframes
and @counter-style
rules only override global rules in some of the client browsers so they need handled separately. This plugin has taken care of this and transforms the PostCss AST safely.
1@-webkit-keyframes fade-in { 2 0% { 3 opacity: 0; 4 } 5 100% { 6 opacity: 0.8; 7 } 8} 9@keyframes fade-in { 10 0% { 11 opacity: 0; 12 } 13 100% { 14 opacity: 0.8; 15 } 16} 17@media (max-width: 500px) { 18 @-webkit-keyframes fade-in { 19 0% { 20 opacity: 0; 21 } 22 100% { 23 opacity: 1; 24 } 25 } 26 @keyframes fade-in { 27 0% { 28 opacity: 0; 29 } 30 100% { 31 opacity: 1; 32 } 33 } 34 @-webkit-keyframes fade-in { 35 0% { 36 opacity: 0; 37 } 38 100% { 39 opacity: 0.8; 40 } 41 } 42 @keyframes fade-in { 43 0% { 44 opacity: 0; 45 } 46 100% { 47 opacity: 0.8; 48 } 49 } 50 @supports (display: flex) { 51 @-webkit-keyframes fade-in { 52 0% { 53 opacity: 0; 54 } 55 100% { 56 opacity: 1; 57 } 58 } 59 @keyframes fade-in { 60 0% { 61 opacity: 0; 62 } 63 100% { 64 opacity: 1; 65 } 66 } 67 } 68} 69@-webkit-keyframes fade-in { 70 0% { 71 opacity: 0; 72 } 73 100% { 74 opacity: 1; 75 } 76} 77@keyframes fade-in { 78 0% { 79 opacity: 0; 80 } 81 100% { 82 opacity: 1; 83 } 84}
1@media (max-width: 500px) { 2 @-webkit-keyframes fade-in { 3 0% { 4 opacity: 0; 5 } 6 100% { 7 opacity: 0.8; 8 } 9 } 10 @keyframes fade-in { 11 0% { 12 opacity: 0; 13 } 14 100% { 15 opacity: 0.8; 16 } 17 } 18 @supports (display: flex) { 19 @-webkit-keyframes fade-in { 20 0% { 21 opacity: 0; 22 } 23 100% { 24 opacity: 1; 25 } 26 } 27 @keyframes fade-in { 28 0% { 29 opacity: 0; 30 } 31 100% { 32 opacity: 1; 33 } 34 } 35 } 36} 37@-webkit-keyframes fade-in { 38 0% { 39 opacity: 0; 40 } 41 100% { 42 opacity: 1; 43 } 44} 45@keyframes fade-in { 46 0% { 47 opacity: 0; 48 } 49 100% { 50 opacity: 1; 51 } 52}
See the PostCSS documentation for examples for your environment.
See CONTRIBUTORS.md.
No vulnerabilities found.
Reason
13 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 8
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 4/22 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-05-05
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