
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
smooth-scroll-on-back-press
Advanced tools
A simple NPM package to implement smooth scroll on back press functionality
This is a simple script to add smooth scroll to anchor links on your website. When a user clicks on an anchor and goes to the different page and comes back to the page where the anchor link is, the page will scroll to the anchor link smoothly.
Run npm install smooth-scroll-on-back-press to install the package.
Add the following code to your JavaScript file such as app.js
import smoothScroll from 'smooth-scroll-on-back-press';
smoothScroll();
Now you are good to go. The script will automatically add smooth scroll to all the anchor links on your website.
You can see the example here.
The script will not work if there is no scroll on the page after the page load.
FAQs
A simple NPM package to implement smooth scroll on back press functionality
We found that smooth-scroll-on-back-press 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.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.