How to use cron-converter - 1 common examples

To help you get started, we’ve selected a few cron-converter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github replicatedhq / kots / kotsadm / api / src / snapshots / schedule.ts View on Github external
export function nextScheduled(appId: string, cronExpression: string): ScheduledSnapshot {
  const cron = new Cron();

  return {
    appId,
    id: randomstring.generate({ capitalization: "lowercase" }),
    scheduledTimestamp: cron.fromString(cronExpression).schedule().next(),
  };
}

cron-converter

Cron string converter

MIT
Latest version published 9 months ago

Package Health Score

61 / 100
Full package analysis

Popular cron-converter functions