
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
A light weight animation frame support. With the frame object, you are convinent to do some calculation.
The frame object will pass in the jframes.request()
callback. It providers:
frame.time
time in javascript (eg. +new Date()
).frame.index
index of the requested frame sequence base on zero.frame.dur
the duration time from current frame to the last frame in ms.frame.elapsed
the elapsed time from the first frame to current frame in ms.frame.next()
tells jframes to execute the next frame, if this method are not called, the animation stops.If you want to request a frame, just call jframes.request()
var req = jframes.request(function(frame) {
console.log('avg frame rate: ' + frame.elapsed / (frame.index + 1));
// render stuff
frame.next(); // call the next frame
});
// jframes.release(req); // release resources
The function pass to jframes.request()
will generate a frame sequence correspond to the function. The function will be the action of the frame sequence.
We keep track of frame informations for every frame sequence. You can use jframes.request()
multi times without worry of calculation. For example:
jframes.request(function(frame) {
if (frame.index < 5) {
console.log('frame seq 1: frame %d executed!', frame.index);
frame.next();
}
});
jframes.request(function(frame) {
if (frame.index < 10) {
console.log('frame seq 2: frame %d executed!', frame.index);
frame.next();
}
});
FAQs
A light weight javascript animation frame library
We found that jframes 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
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.