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.
Importable easing functions in ES6
npm install ez.js --save
Import singular
import {easeInCubic} from 'ez.js';
let timeStart;
let diff = 1;
(function ticker(currTime) {
if (!timeStart) timeStart = currTime;
let elapsed = currTime - timeStart;
let tick = easeInCubic(elapsed, timeStart, diff, 1000);
console.log(tick);
requestAnimationFrame(ticker);
})();
Import all
import * as ez from "./ez.js"
for (let key of Object.keys(ez)) {
alert(ez[key](100, 0, 10, 1000));
}
Use as non-ES6
// download minified dist file and add it as a script
<script src="dist.min.js"></script>
Takes four parameters, t: current time, b: beginning value, c: change in value, d: duration
.
This will output a single number depending on how long the function has been running, this is great in conjunction with requestAnimationFrame
to produce buttery animations.
Easings from Robert Penner
FAQs
easing functions in es6 syntax
The npm package ez.js receives a total of 94 weekly downloads. As such, ez.js popularity was classified as not popular.
We found that ez.js 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.