A straightforward date and time formatter in <800b (current version 0.2.6). It has no dependencies, uses an AST-based template approach for efficiency, and provides a minimal set of formatting tokens. Unlike moment.js or date-fns, it focuses on size and simplicity, but is no longer actively maintained.
npm install tinytimeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: import, create template, render with a Date object.
Consider using date-fns or dayjs for active development.
Use a library like luxon for timezone support.
Create template once outside render, then call .render(date).
Use import syntax or a bundler that supports ESM.
Run 'npm install tinytime' and use 'import tinytime from 'tinytime''.
Use default import: import tinytime from 'tinytime'.
Bundle with webpack/rollup or use a CDN that supports ESM.
Use correct tokens: {h}, {H}, {mm}, {ss}, {a}, {MMMM}, etc.No dependency data recorded yet.