Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
npm install a-css-loader_postcss-modules-values
Typescript
Module System
Node Version
NPM Version
70.4
Supply Chain
91.9
Quality
74.8
Maintenance
50
Vulnerability
100
License
JavaScript (100%)
Total Downloads
313,355
Last Day
8
Last Week
784
Last Month
6,653
Last Year
87,433
203 Stars
107 Commits
18 Forks
8 Watching
29 Branches
18 Contributors
Latest Version
1.2.2
Package Id
a-css-loader_postcss-modules-values@1.2.2
Size
6.09 kB
NPM Version
3.10.9
Node Version
7.0.0
Cumulative downloads
Total Downloads
Last day
-97.8%
8
Compared to previous day
Last week
-54.1%
784
Compared to previous week
Last month
-17.1%
6,653
Compared to previous month
Last year
40.7%
87,433
Compared to previous year
2
Pass arbitrary values between your module files
1/* colors.css */ 2@value primary: #BF4040; 3@value secondary: #1F4F7F; 4 5.text-primary { 6 color: primary; 7} 8 9.text-secondary { 10 color: secondary; 11}
1/* breakpoints.css */ 2@value small: (max-width: 599px); 3@value medium: (min-width: 600px) and (max-width: 959px); 4@value large: (min-width: 960px);
1/* my-component.css */ 2/* alias paths for other values or composition */ 3@value colors: "./colors.css"; 4/* import multiple from a single file */ 5@value primary, secondary from colors; 6/* make local aliases to imported values */ 7@value small as bp-small, large as bp-large from "./breakpoints.css"; 8 9.header { 10 composes: text-primary from colors; 11 box-shadow: 0 0 10px secondary; 12} 13 14@media bp-small { 15 .header { 16 box-shadow: 0 0 4px secondary; 17 } 18} 19@media bp-large { 20 .header { 21 box-shadow: 0 0 20px secondary; 22 } 23}
If you are using Sass along with this PostCSS plugin, do not use the colon :
in your @value
definitions. It will cause Sass to crash.
Note also you can import multiple values at once but can only define one value per line.
1@value a: b, c: d; /* defines a as "b, c: d" */
See this PR for more background
ISC
Glen Maddern, 2015.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/21 approved changesets -- score normalized to 1
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
55 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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