Skip to content

Releases: didrod205/tempora

v0.2.0 — CLI

02 Jun 03:09

Choose a tag to compare

⌨️ New zero-dependency CLI

```bash
npx tempora-js ago 2024-01-01 # "2 years ago"
npx tempora-js duration 5400000 # "1h 30m" (--long → "1 hour, 30 minutes")
npx tempora-js parse 1h30m # 5400000 (--human → "1m 30s")
npx tempora-js ago "2030-01-01" --locale ko # "5년 후"
```
Commands: `ago`, `duration`, `parse`. Options: `--locale`, `--long`, `--human`.

Still zero dependencies. Tests 21 → 22.

💖 Sponsor via Lemon Squeezy.

v0.1.0

29 May 07:13

Choose a tag to compare

First public release of tempora — tiny, zero-dependency human-friendly time utilities.

  • 🕒 timeAgo() — localized relative time via Intl ("3 minutes ago", "3분 전")
  • formatDuration()90061000 → "1d 1h 1m 1s"
  • 🔢 parseDuration() — "1h30m" → 5400000
  • 📦 ESM + CJS, full TypeScript types

Install: npm install tempora-js (published as tempora-js; the name tempora was reserved on npm)
npm: https://www.npmjs.com/package/tempora-js