Fast and tiny JavaScript/TypeScript cron parser with timezone support
README.md
# cron-fast [![npm version](https://img.shields.io/npm/v/cron-fast.svg?logo=npm)](https://www.npmjs.com/package/cron-fast) [![npm provenance](https://img.shields.io/badge/provenance-attested-brightgreen?logo=npm)](https://www.npmjs.com/package/cron-fast) [![npm](https://img.shields.io/npm/dw/cron-fast)](https://www.npmjs.com/package/cron-fast) [![JSR](https://jsr.io/badges/@kbilkis/cron-fast)](https://jsr.io/@kbilkis/cron-fast) [![JSR Score](https://jsr.io/badges/@kbilkis/cron-fast/score)](https://jsr.io/@kbilkis/cron-fast) [![CI](https://github.com/kbilkis/cron-fast/actions/workflows/ci.yml/badge.svg)](https://github.com/kbilkis/cron-fast/actions/workflows/ci.yml) [![codecov](https://codecov.io/github/kbilkis/cron-fast/graph/badge.svg)](https://codecov.io/github/kbilkis/cron-fast) [![npm bundle size](https://deno.bundlejs.com/badge?q=cron-fast)](https://bundlejs.com/?q=cron-fast) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) **10x+ faster than the alternatives. 4KB gzipped. Zero dependencies.** Fast and tiny JavaScript/TypeScript cron parser with timezone support. Works everywhere: Node.js, Deno, Bun, Cloudflare Workers, and browsers. ## Features - **Parse & validate** - Convert cron expressions to structured data and check validity - **Get execution times** - Calculate next, previous, or multiple scheduled runs - **Match dates** - Check if a date matches a cron expression - **Describe** - Convert cron expressions to human-readable text (e.g., "Every 5 minutes") - **Timezone support** - Full IANA timezone support using native `Intl` API - **CLI included** - Validate, preview, and describe expressions from the terminal ## Why cron-fast? - **10x+ faster** than other popular cron libraries on scheduling operations - **~8x smaller** bundle than the next most popular alternative (see [Bundle Size](#bundle-size) below) - **Zero dependencies** — nothing to audit, nothing to break - **Universal runtime** — same code in Node.js, Deno, Bun, Cloudflare Wo…