Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
npm install postcss-smoothscroll-anchor-polyfill
Typescript
Module System
Node Version
NPM Version
44.7
Supply Chain
98
Quality
73.3
Maintenance
50
Vulnerability
99.3
License
JavaScript (100%)
Total Downloads
1,567
Last Day
2
Last Week
3
Last Month
5
Last Year
138
4 Stars
55 Commits
1 Watching
7 Branches
6 Contributors
Latest Version
2.0.2
Package Id
postcss-smoothscroll-anchor-polyfill@2.0.2
Unpacked Size
9.12 kB
Size
3.58 kB
File Count
7
NPM Version
8.5.0
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
200%
3
Compared to previous week
Last month
-28.6%
5
Compared to previous month
Last year
-27%
138
Compared to previous year
4
1
3
⚙ PostCSS plugin that updates the standard scroll-behavior
property to work with smoothscroll-anchor-polyfill
1html { 2 scroll-behavior: smooth; 3}
compiles to:
1html { 2 font-family: "scroll-behavior:smooth"; 3 scroll-behavior: smooth; 4}
or if all browsers in your browserslist support CSS Custom Properties:
1html { 2 --scroll-behavior: smooth; 3 scroll-behavior: smooth; 4}
font
and font-family
Existing font
and font-family
declarations are kept and smoothscroll-anchor-polyfill will still work:
👉🏻 Even though the original font declarations are kept, using
html { }
only forscroll-behavior
and declaring your font styles onbody { }
is prefered.
1html { 2 scroll-behavior: smooth; 3 font-family: "Helvetica Neue"; 4} 5 6/* Compiles to: */ 7 8html { 9 scroll-behavior: smooth; 10 font-family: "scroll-behavior:smooth", "Helvetica Neue"; 11}
1html { 2 scroll-behavior: smooth; 3 font: strong 1em/1.4 "Helvetica Neue"; 4} 5 6/* Compiles to: */ 7 8html { 9 scroll-behavior: smooth; 10 font: strong 1em/1.4 "Helvetica Neue"; 11 font-family: "scroll-behavior:smooth", "Helvetica Neue"; 12}
npm:
npm install postcss-smoothscroll-anchor-polyfill --save-dev
or yarn:
1yarn add --dev postcss-smoothscroll-anchor-polyfill
1postcss([ require('postcss-smoothscroll-anchor-polyfill') ])
See PostCSS docs for examples for your environment.
This PostCSS plugin is based on a fork of postcss-object-fit-images, which was built by:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
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
Found 0/5 approved changesets -- score normalized to 0
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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
22 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