
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Social Media Photo by Hans Eiskonen on Unsplash
A super light and simple way to reschedule animation frames, compatible with every browser and Node.js through a setTimeout
and clearTimeout
fallback.
import reraf from 'reraf';
// or const reraf = require('reraf');
// or <script src="//unpkg.com/reraf">
const reschedule = reraf(/* optional integer limit */);
reschedule(console.log, null, ['first']);
reschedule(console.log, null, ['second']);
// will log "second", but never "first"
The reschedule(...)
returns a function to be able to stop()
the scheduled animation frame, in case it's needed.
If a truthy
value is passed to stop(truthy)
, the callback will be "flushed" (invoked) if it didn't flush already.
The stop(...)
function returns a boolean value, indicating the stop actually stopped the execution of the callback, or it didn't, 'cause it happened before.
FAQs
A super light and simple way to reschedule animation frames
The npm package reraf receives a total of 3,450 weekly downloads. As such, reraf popularity was classified as popular.
We found that reraf 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
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.