A lightweight, fast date/time formatter for JavaScript/TypeScript, currently at version 2.2.6. It supports custom masks, locale-aware formatting (en, ru), timezone manipulation, date calculations, and utility methods like zeroing and validation. Key differentiators: minimal footprint, no dependencies, TypeScript-friendly, and a simple chainable API. Releases are stable with a moderate cadence, primarily bug fixes and minor enhancements.
npm install ritm-dateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows default format, custom mask, locale, date arithmetic, and validation.
Replace rDate(new Date()).isValid() with rDate().isValid(new Date()).
Always use .isValid() to check before formatting.
Pass the date as argument to rDate().
Use .zone() to explicitly set timezone if needed.
For date comparison, prefer converting to timestamps with .format('x').Use 'import rDate from 'ritm-date'' instead of 'import { rDate } from 'ritm-date''.Pass a date to rDate(new Date()).format() or use rDate().format(date) for deprecated API.
Always validate input with rDate().isValid(date) before calling .format().
No dependency data recorded yet.