Az-time-formatter is a lightweight JavaScript library for formatting and parsing dates and times with support for multiple locales and timezones. Version 1.9.2 is stable, with monthly releases on npm. It offers a fluent API for common date operations, includes TypeScript type definitions, and is distributed as an ESM module with CommonJS fallback. Key differentiators include zero dependencies and built-in localization for over 20 locales.
npm install az-time-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic date formatting and parsing with locale and timezone options in TypeScript.
Use import syntax instead of require, or stay on v1 if CJS is required.
Update calls to include options object with locale and timezone.
Replace format() with formatDate().
Always pass options.timezone explicitly when parsing or formatting.
Use dynamic import with specific locale modules if available, or bundle only needed locales.
Install with npm install az-time-formatter; ensure project supports ESM ("type": "module" in package.json or use .mjs extension).Use import { formatDate } from 'az-time-formatter' instead of importing as default.Ensure pattern argument is a string (e.g., 'yyyy-MM-dd').
No dependency data recorded yet.