
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
SProgress is a simple on-scroll progress bar developed for web apps. It aims to give a user feedback as to how far they are in an article.
Inspired by Alligator.io. A brief usage can be seen below 👇🏻
Npm or Bower
To install the package via npm, simply run the command below
$ npm install sprogress --save
$ yarn add sprogress -S
Via CDN links
You can also make use of the cdn links if you dont want to install the package. Add the following to your html file
<script src="https://unpkg.com/sprogress@1.0.2/lib/sprogress.min.js"></script>
After installing the package, you can simply make use of it by call the init function provided.
import SProgress from 'sprogress';
[...]
SProgress.init({})
[...]
The init function takes in an object which is used to customize the SProgress bar. More on that below
N.B - If you are using the CDN, you don't need to call the init method simply add the script tag and you all set 😁
With SProgress, the following properties can be customized:-
String
This basically customizes the color of the progress bar.
[...]
SProgress.init({
color: // Your color here in hex |rgb |rgba format
});
[...]
Integer
This manipulates the height of the progress bar
[...]
SProgress.init({
height: 10
});
[...]
The default classname for the progress bar is scroll-progress and with that you can create you very own css file and manipulate the class to best suit your needs.
.scroll-progress {
/* CSS styles here */
}
Looking to contribute, then
bug-fix, feature or cleanupAs they say, Software is written by humans and therefore has bugs so if you notice any bug while using the library, do raise an issue
FAQs
Progress bar on Scroll
We found that sprogress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.