
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
to use:
import LFO from 'lfo-value'
create a new instance of the lfo specifying, min value, max value, and frequency in seconds
const myLFO = new LFO(1, 100, 2);
On instance creation it records an internal 'instance start time' to map against, after which it doesn't rely on it's own internal clock or anything looping, you bring your own logic to read it back, at read time it simply calculates the value to return.
myLFO.getSquare(); // outputs 1 or 100 every 2 seconds
To get animated values read this from any looping function such as requestAnimationFrame or setInterval
you can supply an offset in seconds, which lets you create multiple LFO's with the same interval but off-phase using the same instance.
console.log(myLFO.getSquare(), myLFO.getSquare(1)); //2 square waves 180 degrees out of phase from each other
FAQs
low-frequency oscillator for javascript
We found that lfo-value 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.