
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
Flexible reliable counting. Uses periodic to stay on time.
var count = require('encounter');
// count from -2 to 2 in steps of 0.1 every 100 ms
count()
.from(-2)
.to(2)
.step(0.1)
.every(100)
.start()
.on('tick', function (val) {
console.log('tick: ' + val);
})
.on('end', function () {
console.log('counting ended');
});
encounter has sensible defaults, so the common use cases are easy:
// count down
count().from(10).start().on('tick', console.log);
// fast count up
count().to(10).every(100).start().on('tick', console.log);
encounter makes sure it stays in time even when the event loop is busy.
Start counting at val. Defaults to 0.
Count until val. Defaults to 0.
Progress the counter by val each step. Defaults to 1.
Progress the counter every val milliseconds. Defaults to 1000.
Start counting.
End counting.
Calls fn with the current tick value, starting from the initial value.
Calls fn when to is reached.
With npm do
$ npm install encounter
Alternatively, with component do
$ component install juliangruber/encounter
(MIT)
FAQs
Flexible reliable counting.
We found that encounter 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.