Skip to main content
01

fdu

Ultra-fast, zero-dependency date-time library for JavaScript — approximately 4x faster than Day.js.

TypeScriptnpmZero-Dependency
fdu

About

Ultra-fast, zero-dependency date-time library for JavaScript and TypeScript. Immutable API, tree-shakeable ESM design, and locale-aware formatting — grounded in calendar-correct arithmetic with floor semantics.

Performance

Benchmarked against Day.js, date-fns, and Luxon:

  • 4x faster date manipulation
  • 13x faster comparisons
  • 1.7x faster formatting

Usage

typescript
import { fdu } from "@pyyupsk/fdu";
 
const date = fdu("2025-09-30");
 
date.format("YYYY-MM-DD HH:mm:ss");
date.add(1, "day").format("[Tomorrow is] dddd");