
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
A C# class that has extra functionality over System.Timer.Timers. This class does not use System.Timer.Timers internally, and instead relies on asynchronous programming.
ExtendedTimer timer = new();
timer.TickInterval = 4000; // every 4 seconds
timer.StartDelay = 2000; // wait 2 seconds before starting the tick interval
timer.TickOnStart = true; // immediately tick upon calling Start()
timer.TickOnStartIgnoreDelay = true; // ignore the start delay if TickOnStart is true
// listening for tick events
timer.OnTimerTick += (sender, e) =>
{
Console.WriteLine($"timer has ticked {timer.TickCount} times");
if (timer.TickCount > 10)
{
Console.WriteLine("pausing timer because it has ticked over 10 times");
timer.Pause();
}
};
// listening for state changes
timer.OnTimerStateChanged += (sender, state) =>
{
Console.WriteLine("timer state has changed. new state: " + state);
bool exampleCondition = true;
if (state == ExtendedTimer.TimerState.Paused && exampleCondition)
{
Console.WriteLine("resuming timer because a condition was met.");
timer.Resume();
}
};
timer.OnTimerStop += (sender, e) =>
{
Console.WriteLine("timer has stopped. i wonder why...");
Console.WriteLine("time since timer has been started: " + new DateTime(timer.TimeSinceStart));
};
timer.Start();
FAQs
Package Description
We found that extendedtimer demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.