UNPKG

express-post-task-scheduler

Version:

A lightweight npm package to create and manage scheduled tasks using Express middleware. Configure tasks via POST requests and execute them at specified times seamlessly.

7 lines (6 loc) 142 B
import { Job } from "node-schedule"; export type IJob = { taskId: number; executor: (...args: any[]) => any; jobInstance: Job; };