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