Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@callmehiphop/ticker
Advanced tools
Simple event based game loop based on the Game Programming Patterns Game Loop chapter.
$ npm install --save @callmehiphop/ticker
const Ticker = require('@callmehiphop/ticker');
const ticker = new Ticker();
ticker.on('update', (dt) => {
// update all the things!
});
ticker.on('render', () => {
// render all the things!
});
// stop the ticker
ticker.stop();
// resume the ticker
ticker.resume();
Type: canvas
HTML element to be passed into requestAnimationFrame
- presumably canvas.
Type: number
Default: 60
Desired frames per second, this will alter how often the update
event is fired.
const canvas = document.getElementById('my-canvas');
const ticker = new Ticker(canvas, 30);
Indicates models should be updated with provided delta time.
Type: function
ticker.on('update', (dt) => {
// Update all your models.
});
Indicates that you should draw the current state of your models.
frameStep
is how far into the current frame we are.
Type: function
ticker.on('render', (frameStep) => {
// Render all your models.
});
Stops the ticker.
ticker.stop();
Resumes the ticker.
ticker.resume();
MIT
FAQs
Simple event-based fixed-rate game loop.
We found that @callmehiphop/ticker 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.