Gathering detailed insights and metrics for @wemnyelezxnpm/dicta-molestias-sunt
Gathering detailed insights and metrics for @wemnyelezxnpm/dicta-molestias-sunt
Gathering detailed insights and metrics for @wemnyelezxnpm/dicta-molestias-sunt
Gathering detailed insights and metrics for @wemnyelezxnpm/dicta-molestias-sunt
npm install @wemnyelezxnpm/dicta-molestias-sunt
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
242
Last Day
10
Last Week
74
Last Month
118
Last Year
181
MIT License
20 Commits
1 Branches
Updated on Apr 27, 2024
Latest Version
1.0.0
Package Id
@wemnyelezxnpm/dicta-molestias-sunt@1.0.0
Unpacked Size
14.30 kB
Size
5.78 kB
File Count
10
NPM Version
10.5.0
Node Version
20.12.2
Published on
Apr 25, 2024
Cumulative downloads
Total Downloads
Last Day
-41.2%
10
Compared to previous day
Last Week
94.7%
74
Compared to previous week
Last Month
1,866.7%
118
Compared to previous month
Last Year
196.7%
181
Compared to previous year
33
PostCSS plugin to remove all unused variables in a CSS file.
A --variable
is considered unused if it, or any other variables consuming it are not accessed by a single var()
statement in the whole CSS file.
This is unsafe if there is a possibility of a second CSS file accessing variables from the first one.
postcss-unused-var
is outdated, deprecated, and didn't work right.:root
.var()
by following variable dependency graph.npm install @wemnyelezxnpm/dicta-molestias-sunt --save-dev
1const pruneVar = require('@wemnyelezxnpm/dicta-molestias-sunt'); 2 3const yourConfig = { 4 plugins: [pruneVar()], 5};
Use this option to exclude certain files or folders that would otherwise be scanned.
1const pruneVar = require('@wemnyelezxnpm/dicta-molestias-sunt'); 2 3const yourConfig = { 4 plugins: [pruneVar({skip: ['node_modules/**']})], 5};
Input:
1:root { 2 --root-unused: red; 3 --root-unused-proxy: var(--root-unused); 4 --root-used: blue; 5} 6 7.foo { 8 --unused: red; 9 --unused-proxy: var(--unused); 10 --proxied: pink; 11 --proxy: var(--proxied); 12 --used: green; 13 color: var(--root-used); 14 background: linear-gradient(to bottom, var(--used), var(--proxy)); 15}
Output
1:root { 2 --root-used: blue; 3} 4 5.foo { 6 --proxied: pink; 7 --proxy: var(--proxied); 8 --used: green; 9 color: var(--root-used); 10 background: linear-gradient(to bottom, var(--used), var(--proxy)); 11}
No vulnerabilities found.
No security vulnerabilities found.