npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agozilla

v1.5.0

Published

Human-friendly date and time formatting for JavaScript. Zero dependencies, locale support and TypeScript ready.

Readme

🦖 Agozilla

Human-friendly date & time formatting for JavaScript.

Node

TypeScript

npm version

npm downloads

License: MIT

CI

A lightweight JavaScript library for formatting dates into natural, human-readable expressions.

No dependencies. Fast. TypeScript ready.


📦 Installation

npm install agozilla
🚀 Quick Start
const agozilla = require("agozilla");

console.log(agozilla("2024-01-01"));
// 2 years ago

console.log(agozilla.fromNow("2024-01-01"));
// 2 years ago

console.log(
  agozilla.duration(
    "2020-01-01",
    "2025-01-01"
  )
);
// 5 years

console.log(
  agozilla.until("2030-01-01")
);
// in 3 years

console.log(
  agozilla.smart(new Date())
);
// Today
✨ Features
⚡ Zero dependencies
🌍 Locale support
📦 TypeScript definitions
⏱ Relative time formatting
📅 Human-friendly dates
🧪 Jest tested
✅ GitHub Actions CI
📦 CommonJS & ESM support
🌐 Browser and modern bundler compatible
📚 API
fromNow()
agozilla.fromNow(date);

Returns:

2 years ago
duration()
agozilla.duration(start, end);

Returns:

5 years 3 months
until()
agozilla.until(date);

Returns:

in 2 months
smart()
agozilla.smart(date);

Returns:

Today
Yesterday
Tomorrow
5 years ago
calendar()

Get human-friendly calendar descriptions for dates.

agozilla.calendar(new Date());

// Today

agozilla.calendar(yesterday);

// Yesterday

agozilla.calendar(tomorrow);

// Tomorrow

For nearby dates:

agozilla.calendar(date);

// Last Monday

agozilla.calendar(date);

// Next Friday

For older dates, Agozilla returns a formatted calendar date:

agozilla.calendar("2024-01-01");

// January 1, 2024
ESM

Agozilla supports modern ES modules:

import agozilla from "agozilla";

agozilla(new Date(Date.now() - 3600000));

// 1 hour ago

agozilla.calendar(new Date());

// Today
🌍 Locales
agozilla.fromNow(date, {
  locale: "en"
});

agozilla.fromNow(date, {
  locale: "es"
});

agozilla.fromNow(date, {
  locale: "fr"
});
🗺 Roadmap
✅ fromNow()
✅ duration()
✅ until()
✅ smart()
✅ calendar()
⏳ live()
✅ browser bundle
⏳ React package
🤝 Contributing

Contributions, feature requests and bug reports are welcome.

If you'd like to contribute, feel free to open an issue or submit a pull request.

📄 License

MIT © Prathvik Mehra


### Important

This version keeps your existing README information while updating it for **v1.5.0**:

- ✅ ESM documented correctly
- ✅ ESM code block properly closed
- ✅ Browser/bundler support documented
- ✅ TypeScript support documented
- ✅ `calendar()` correctly marked as completed
- ✅ No `countdown()` documentation added
- ✅ Roadmap corrected
- ✅ CommonJS usage remains documented