Skip to Content
Getting StartedInstallation

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 install rosetta-date

Requirements

  • Node ≥ 22.12.
  • An ESM project. Use import; the package does not support require().

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

ImportWhat it provides
rosetta-dateconvert, createConverter, describe, explain, defineDialect, defineLibrary, Canonical, and the error/option types
rosetta-date/dialectsThe built-in dialects and getDialect
rosetta-date/librariesThe built-in libraries and getLibrary
rosetta-date/intlThe Intl.DateTimeFormat adapter: toIntlOptions and fromIntlOptions

Continue to the Quick start to make your first conversion.

Last updated on