A collection of TypeScript utilities for the TC39 Temporal proposal.
All packages rely on the use of temporal-polyfill. Packages use instanceof checks to determine if a type is supported, so one must ensure to use that exact polyfill.
For more detailed documentation, see the API docs.
| Package | Version | Downloads | Description |
|---|---|---|---|
| format-temporal | Format Temporal objects as localized strings. | ||
| interval-temporal | An interval type for Temporal, plus helpers for comparing and sorting Temporal objects. | ||
| parse-temporal | Parse Temporal objects from strings. | ||
| superjson-temporal | SuperJSON serializers/deserializers for Temporal types. | ||
| temporal-quarter-fns | Functions for working with quarters in Temporal. | ||
| temporal-zod | Zod validators for Temporal types. |
Apache-2.0