Skip to content

tempo-fns

Pure, modern, and tree-shakable date-time utilities.

Designed for the ECMAScript Ecosystem

tempo-fns is a comprehensive suite of pure, functional date-time utilities built exclusively for the modern JavaScript and TypeScript ecosystem.

Designed to seamlessly augment the new ECMAScript Temporal API, this library delivers the advanced calendar, scheduling, and timezone logic that modern web applications demand—without polluting your bundles.

Why tempo-fns?

  • 100% Pure Functions: Every utility is a pure, standalone function. No mutated state, no side effects.
  • Aggressively Tree-Shakable: Keep your bundle footprint tiny. Only import exactly what you need. If you only need isSameFiscalQuarter, that's the only code that ships to your users.
  • Native Temporal Integration: No legacy Date objects. tempo-fns is built from the ground up to consume, calculate, and return native Temporal instances.

Whether you're building complex financial SLA calculators, recurring cron-based scheduling systems, or simply need robust calendar math, tempo-fns provides the modern, professional tooling you need to ship with confidence.