Gathering detailed insights and metrics for postcss-pseudo-class-any-link
Gathering detailed insights and metrics for postcss-pseudo-class-any-link
Gathering detailed insights and metrics for postcss-pseudo-class-any-link
Gathering detailed insights and metrics for postcss-pseudo-class-any-link
npm install postcss-pseudo-class-any-link
Typescript
Module System
Min. Node Version
Node Version
NPM Version
CSS (43.25%)
JavaScript (30.24%)
TypeScript (22.9%)
HTML (3.03%)
Nunjucks (0.48%)
Shell (0.1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT-0 License
984 Stars
4,380 Commits
77 Forks
9 Watchers
6 Branches
132 Contributors
Updated on Jul 12, 2025
Latest Version
10.0.1
Package Id
postcss-pseudo-class-any-link@10.0.1
Unpacked Size
10.99 kB
Size
3.54 kB
File Count
7
NPM Version
10.7.0
Node Version
22.1.0
Published on
Oct 23, 2024
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
1
1
npm install postcss-pseudo-class-any-link --save-dev
PostCSS Pseudo Class Any Link lets you :any-link
pseudo-class in CSS,
following the Selectors specification.
1nav :any-link > span { 2 background-color: yellow; 3} 4 5/* becomes */ 6 7nav :link > span, nav :visited > span { 8 background-color: yellow; 9} 10nav :any-link > span { 11 background-color: yellow; 12}
Add PostCSS Pseudo Class Any Link to your project:
1npm install postcss postcss-pseudo-class-any-link --save-dev
Use it as a PostCSS plugin:
1const postcss = require('postcss'); 2const postcssPseudoClassAnyLink = require('postcss-pseudo-class-any-link'); 3 4postcss([ 5 postcssPseudoClassAnyLink(/* pluginOptions */) 6]).process(YOUR_CSS /*, processOptions */);
The preserve
option determines whether the original notation
is preserved. By default, it is preserved.
1postcssPseudoClassAnyLink({ preserve: false })
1nav :any-link > span { 2 background-color: yellow; 3} 4 5/* becomes */ 6 7nav :link > span, nav :visited > span { 8 background-color: yellow; 9}
The subFeatures.areaHrefNeedsFixing
option determines if <area href>
elements should match :any-link
pseudo-class.
In IE and Edge these do not match :link
or :visited
.
This increased CSS bundle size and is disabled by default.
1postcssPseudoClassAnyLink({ 2 subFeatures: { 3 areaHrefNeedsFixing: true 4 } 5})
1nav :any-link > span { 2 background-color: yellow; 3} 4 5/* becomes */ 6 7nav :link > span, nav :visited > span, nav area[href] > span { 8 background-color: yellow; 9} 10nav :any-link > span { 11 background-color: yellow; 12}
No vulnerabilities found.
Reason
30 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
1 existing vulnerabilities detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
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