Ever wanted to check the validity of a cron expression or simply know when the next run is due, but all you had available was curl? With tremendous.ooo/cron, curl is actually all you need.
Simply make a POST request to tremendous.ooo/cron
with the following payload:
{
"cron": "0 0 * * WED"
}
and it will tell whether the expression is valid and when the next run would be:
{
"nextRun": "2020-06-17T00:00:00.000Z",
"status": 200
}
If you supply an invalid or no cron expression, here's what you'll get:
{
"error": "Invalid cron expression.",
"status": 400
}
Disclaimer: This project is not associated with crontab.guru
This site is hosted on Cloudflare Workers. If you're looking to make changes and want to publish this yourself, use the following instructions:
docker run -ti --entrypoint bash -v $PWD:/app node
npm i @cloudflare/wrangler
./node_modules/.bin/wrangler publish