
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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
The npm package jframes receives a total of 7 weekly downloads. As such, jframes popularity was classified as not popular.
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.