A date and time formatter for cf (Clock Limited) projects, built on moment.js. Current stable version 1.0.2 provides locale-aware formatting via clock locales, special formats (calendar, relative time), custom format definitions, and timezone overrides at the format level. Limited to date/time; currency mentioned as potential future addition. Low release cadence; no updates since initial publish.
npm install cf-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require the package, configure locale and custom formats, and use built-in locale formats, special formats, custom formats, and timezone overrides.
Consider using alternatives like date-fns or dayjs; or pin moment version if necessary.
Test with target moment version; consider specifying moment peer dependency version range.
Upgrade to Node.js LTS; if issues arise, consider using an alternative library.
npm install moment --save
const format = formatter({ locale: {...}, formats: {...} });