JavaScript github.com

A new date library with a "largely Moment.js-compatible API"  β†¦

Why use Day.js?

  • πŸ•’ Familiar Moment.js API & patterns
  • πŸ’ͺ Immutable
  • πŸ”₯ Chainable
  • πŸ“¦ 2kb mini library
  • πŸ‘« All browsers support

It’s worth noting that the author doesn’t claim 100% API compatibility with Moment.js, but they say it’s close enough that β€œIf you use Moment.js, you already know how to use Day.js.”

If your app targets modern browsers and is currently packing Moment.js’ 16.4kb in its JS bundle, maybe you can get by with Day.js’ 2kb instead…


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00