mmntjs — Drop-in Moment.js replacement with Temporal migration path
JSON →mmntjs v1.0.0 is a drop-in replacement for moment.js that provides a migration path to the Temporal API. It implements the full moment.js API surface and allows gradual migration file-by-file without breaking existing code. Ships TypeScript types, supports Node >=16. Key differentiators: zero-code alias using npm alias (`moment@npm:mmntjs`), automated codemod (`npx mmntjs migrate`), coexistence mode with original moment.js, and multiple entry points including `lite` (14.8 KB gzip), `full` (45.1 KB), tree-shakeable `fns` (0.5-1.3 KB), and a `temporal` bridge. Includes 136 locales and optional timezone support via separate package `mmntjs-timezone`. Released with weekly cadence.
Resources
packagemmntjs ↗