
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@danisl99/repeat
Advanced tools
A better way to do intervals.
$ npm install @danisl99/repeat
const Repeat = require('@danisl99/repeat');
// Without options the it will run forever with an interval of one second
// You can stop the interval externally or internally
const exampleOne = new Repeat((self) => {
console.log(Date.now());
// self.stop();
})
setTimeout(() => {
exampleOne.stop();
}, 3000);
// With options
let counterOne = 0;
const exampleTwo = new Repeat({
duration: 10000, // or use date:(Date.now()+5000)
interval:500,
},(self) => {
self.endTime -= 1000; // You can change the duration internally while it runs
if(counterOne == 2){
// Change callback on the fly
self.callback = ()=>{
console.log(Date.now());
}
}
console.log(counterOne);
counterOne++;
})
FAQs
A better way to do intervals
The npm package @danisl99/repeat receives a total of 5 weekly downloads. As such, @danisl99/repeat popularity was classified as not popular.
We found that @danisl99/repeat 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.