A lightweight JavaScript library for formatting dates and times. Version 1.0.6 is the latest stable release. It offers simple APIs for date/time formatting without external dependencies. The library is minimal but lacks comprehensive documentation, making it less discoverable than alternatives like date-fns or dayjs.
npm install date-time-formatter-dtfNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic date, time, and date-time formatting with default pattern.
Use a more feature-rich library like date-fns or dayjs if locale formatting is required.
Always pass valid Date instances or use try/catch to handle potential errors.
Evaluate if this library still meets your needs; alternatives are more actively maintained.
Ensure the argument is a Date object: new Date('2025-01-27')Add "type": "module" to your package.json or use .mjs extension.
Use import { formatDate } from 'date-time-formatter-dtf' instead of import dtf from ...No dependency data recorded yet.