Cron Expression Tester
Type a cron expression and read it back in plain English, instantly. This runs cron-translate in your browser, the same library you can drop into your node-cron project. No server, no tracking of what you type.
at 9am on monday to friday
It uses node-cron's 6-field syntax (second minute hour day month weekday). Five-field expressions work too: the second is assumed to be 0.
Every test is shareable. The URL updates as you type, so you can copy it (or hit Copy shareable link) and send it to someone. A ?c= link opens the cron reader (/cron-tester?c=0 0 9 * * 1-5) and a ?t= link opens the English translator (/cron-tester?t=every weekday at 6pm).
How it works
The tester is just two function calls from cron-translate:
import { toHuman, toCron } from 'cron-translate';
toHuman('0 0 9 * * 1-5'); // "at 9am on monday to friday"
toCron('every weekday at 6pm'); // "0 0 18 * * 1-5"toHuman is phrased so that toCron parses it back to the same expression, so the two directions round-trip. Once you have an expression you trust, drop it into node-cron:
import cron from 'node-cron';
cron.schedule('0 0 9 * * 1-5', () => {
runDailyReport();
});See the cron-translate guide for the full grammar, or the cron syntax reference for what each field accepts.