Installation
rosetta-date is in active development. Minor releases may include breaking changes. Pin an exact
version in your package.json and review the changelog before upgrading.
npm
npm install rosetta-dateRequirements
- Node ≥ 22.12.
- An ESM project. Use
import; the package does not supportrequire().
rosetta-date has no runtime dependencies and declares no side effects. The conversion API lives
at the package root, while dialects and libraries have separate entrypoints.
Entrypoints
| Import | What it provides |
|---|---|
rosetta-date | convert, createConverter, describe, explain, defineDialect, defineLibrary, Canonical, and the error/option types |
rosetta-date/dialects | The built-in dialects and getDialect |
rosetta-date/libraries | The built-in libraries and getLibrary |
rosetta-date/intl | The Intl.DateTimeFormat adapter: toIntlOptions and fromIntlOptions |
Continue to the Quick start to make your first conversion.
Last updated on