Loading repository data…
Loading repository data…
AbhishekSuresh2 / repository
⏱️ A zero-dependency, high-performance micro-utility for human-readable time formatting. Built entirely on a smartphone for the modern Node.js ecosystem.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Human-friendly time formatting for modern JavaScript.
Turn boring timestamps into natural, readable phrases like “just now”, “this morning”, “3d ago”, or “in 5m” — instantly.
Built for 2026 projects, minimal, fast, and dependency-free.
Most time libraries are heavy or overkill.
human-time-2026 focuses on what humans actually say.
✔ Ultra-lightweight
✔ Zero dependencies
✔ Past & future support
✔ Smart context detection
✔ Works everywhere (Node, Bun, Deno, Browser)
npm install human-time-2026
import humanTime from 'human-time-2026';
// --- Contextual Awareness ---
// If it's currently 10:00 AM...
console.log(humanTime(new Date().setHours(8, 0)));
// Output: "this morning"
// If it's 3:00 AM...
console.log(humanTime(new Date().setHours(2, 0)));
// Output: "late last night"
// --- Standard Relative Time ---
console.log(humanTime(Date.now() - 5000)); // "just now"
console.log(humanTime(Date.now() - 120000)); // "2m ago"
// --- Future Dates ---
console.log(humanTime(Date.now() + 86400000)); // "tomorrow"
| Input Time | Output |
|---|---|
| 2 seconds ago | just now |
| 45 seconds ago | 45s ago |
| 5 minutes ago | 5m ago |
| Same day morning | this morning |
| Yesterday | yesterday |
| 3 days ago | 3 days ago |
| 2 weeks ago | 2w ago |
| Last year | 2025 |
Automatically detects past or future
Uses natural language, not robotic strings
Smart day-based context:
Falls back to month/day or year when needed
No configs. No setup. Just import & use.
If this package saved you time or made your UI better:
👉 Give it a ⭐ on GitHub Stars help this project reach more developers ❤️
Want to improve human-time-2026?
Please contribute only through the official repository.
MIT License © 2026 Abhishek Suresh https://github.com/AbhishekSuresh2
⚠️ Please do not copy, modify, or republish this package as your own without explicit permission.
Make time feel human, not mechanical. Let machines adapt to people — not the other way around.
human-time-2026 ⏳✨