
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
request-animation-frames
Advanced tools
Iterable utility for seamless animation frame handling in JavaScript environments.
npm install request-animation-frames
import requestAnimationFrames from 'request-animation-frames';
for await (const timeStamp of requestAnimationFrames()) {
console.log('AnimationFrame timestamp:', timeStamp);
}
Returns an iterable with the chunks. The last chunk could be smaller.
Type: Iterable (for example, Array)
The iterable to chunkify.
Type: number (integer)
Minimum: 1
The size of the chunks.
When dealing with large datasets, breaking data into manageable chunks can optimize the batch processing tasks.
import chunkify from '@sindresorhus/chunkify';
const largeDataSet = [...Array(1000).keys()];
const chunkedData = chunkify(largeDataSet, 50);
for (const chunk of chunkedData) {
processBatch(chunk);
}
Dividing data into chunks can be useful in parallel processing to distribute workload evenly across different threads or workers.
import {Worker} from 'node:worker_threads';
import chunkify from '@sindresorhus/chunkify';
const data = [/* some large dataset */];
const chunkedData = chunkify(data, 20);
for (const [index, chunk] of chunkedData.entries()) {
const worker = new Worker('./worker.js', {
workerData: {
chunk,
index
}
});
}
Splitting a large number of network requests into chunks can help in managing the load on the network and preventing rate limiting.
import chunkify from '@sindresorhus/chunkify';
const urls = [/* Array of URLs */];
const chunkedUrls = chunkify(urls, 10);
for (const chunk of chunkedUrls) {
await Promise.all(chunk.map(url => fetch(url)));
}
FAQs
Use requestAnimationFrame as an async iterable, in any JavaScript environment
The npm package request-animation-frames receives a total of 416 weekly downloads. As such, request-animation-frames popularity was classified as not popular.
We found that request-animation-frames 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.