Gathering detailed insights and metrics for @mpeix/myscroll
Gathering detailed insights and metrics for @mpeix/myscroll
npm install @mpeix/myscroll
Typescript
Module System
Node Version
NPM Version
60.9
Supply Chain
67.5
Quality
72.7
Maintenance
100
Vulnerability
99.3
License
HTML (65.93%)
JavaScript (17.27%)
CSS (16.8%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
750
Last Day
1
Last Week
4
Last Month
20
Last Year
156
23 Commits
1 Watchers
26 Branches
1 Contributors
Updated on Apr 19, 2020
Minified
Minified + Gzipped
Latest Version
1.0.1
Package Id
@mpeix/myscroll@1.0.1
Unpacked Size
3.32 MB
Size
1.36 MB
File Count
39
NPM Version
6.9.0
Node Version
12.2.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
33.3%
4
Compared to previous week
Last Month
42.9%
20
Compared to previous month
Last Year
-7.7%
156
Compared to previous year
2
Vist demo website here: MyScroll
When you want to give custom style to a scrollbar you find that every browser has their css rules. MyScroll wants to help you writing automatically the most remarkable css rules for the most used browsers.
Not all browsers have scroll bar style support. I have tested the code in Google Chrome, IE 11 and Firefox. To ask for more features or if you want to add new ones by yourself vist project repo in Github.
To install MyScroll pacakge run the following command in your terminal
npm install @mpeix/myscroll
MyScroll package exposes the run function. Import the function to make it available in your module
1import {run} from '@mpeix/myscroll';
Run function receives and options object where you can specify the scrollbar width and color.
1run({ 2 selector:'body', 3 scrollWidth: 10, 4 scrollTrackColor: '#FFF' , 5 scrollThumbColor: '#6aab2e', 6 scrollThumbHoverColor: '#000a12' , 7 firefoxWidth: 'thin' 8 });
The elements that MyScroll can modify are the ones that appear in the below image. The result can vary depending on browser, for example, Chrome allow you to set a concrete scroll width while Firefox only admit 'thin' and 'auto' values. I know Chrome and Internet Explorer allow modification of more scroll style properties, I did not include that properties in the plugin to keep it simple.
Note: Be sure when you call MyScroll the window object is defined. If window object is not defined an error will be thrown.
To understand better the elements of scrollbar that can be personalized I recommend you check the DEMO website.
If you prefer call MyScroll directly in your page, paste the following line in you html:
1<script src="https://cdn.peixweb.com/js/myscroll.js"></script>
In that case, you will also call run function, but refer to MyScroll object:
1MyScroll.run({ 2 selector:'body', 3 scrollWidth: 10, 4 scrollTrackColor: '#FFF' , 5 scrollThumbColor: '#6aab2e', 6 scrollThumbHoverColor: '#000a12' , 7 firefoxWidth: 'thin' 8 });
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/23 approved changesets -- score normalized to 0
Reason
no SAST tool 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
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
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