yuga
yuga
Dates and times on Temporal, with the Day.js API you already know. Time zones and every Intl locale are built in.
pnpm add yugajsnpm install yugajsyarn add yugajsbun add yugajsyuga().tz(zone)
.format("ddd D MMM, HH:mm:ss")- Tokyo
- Paris
- New York
The Day.js API, renamed.
import dayjs from "dayjs";
import { yuga } from "yugajs";
dayjs().tz("Asia/Tokyo").add(1, "month").format("dddd D MMMM");
yuga().tz("Asia/Tokyo").add(1, "month").format("dddd D MMMM");Temporal underneath
Exact calendar arithmetic and time zones from the platform, kept off the hot paths, so the common calls are faster than Day.js.
No locale files
Any BCP 47 tag works, built from Intl on first use. Time zones are in core, not plugins.
About 7 kB
Everything else is an extension you import on its own. Every commit publishes its tests, benchmarks and size.