BreakPoint Drop
Waiting for adoption

date.js

Date() for humans — sugar for parsing, formatting, and relative dates in JS

#javascript#date#utility
Abandoned:
3y ago
License:
MIT

The story

Before date-fns, before day.js, before Luxon, there was date.js. Matthew Mueller wrote it as a single-file drop-in replacement for the awful Date API. `new Date().strftime("%Y-%m-%d")` just worked. It had sugar like `Date.today()`, `Date.tomorrow()`, `Date.parse("3 weeks ago")`, and a fluent API for relative dates. It peaked around 2010 with 1.5k stars and a permanent spot in every "JS date utility" comparison blog post. The repo went quiet in 2022. date-fns won the category. But if you've ever debugged a timezone bug in day.js, you know there's still a place for a single-file vanilla solution that doesn't pull in 80kb of dependencies.

For maintainers

Have a project of your own?

Two minutes to drop. You stay credited. Someone out there wants to take it on.

Drop a project →

For developers

Not ready to adopt this one?

Browse 3 other waiting projects on the feed. Or use the free audit to see what your own org is depending on.

Browse the feed Free audit