
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
run-schedule
Advanced tools
run functions at the right time with the right frequency or know why it didn't work out.
run functions at the right time with the right frequency or know why it didn't work out.
var run = require('run-schedule');
var readable = run([
{
id: 'optional. for logging otherwise [0]'
duration: 1000
data: {hi: 1} // is passed as the argument to the job function
}
],{
repeat:true // optional. just keep going through this schedule forever.
},function(job, cb){
console.log(job.data) // logs "{hi: 1}"
cb() // callback must be called
})
export is the run function
schedule - an array of "job" objects that define intervals. Each job has these keys..
options - optional options object.
step(job,cb) - required. this is the function that processes each job when it's time.
RETURN readable - this is an object stream of events related to the progress and result of jobs.
{state:"start",job:job id,start:time in ms,end:time in ms, error: if state is error this is the message,data: the data from the step callback }
cb(false,"tacp") this will be "taco"FAQs
run functions at the right time with the right frequency or know why it didn't work out.
We found that run-schedule 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.