Skip to content

Commit

Permalink
Merge pull request #84 from you-dont-need/patch-4
Browse files Browse the repository at this point in the history
(chore):Add spectrum chat
  • Loading branch information
stevemao committed Nov 14, 2019
2 parents ae06823 + 08e164f commit 06cd3f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
@@ -1,5 +1,7 @@
# You don't (may not) need Moment.js

[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/you-dont-need/momentjs)

[Moment.js](https://momentjs.com/) is a fantastic time & date library with lots of great features and utilities. However, if you are working on a performance sensitive web application, it might cause a huge performance overhead because of its complex APIs and large bundle size.

![Large bundle size](./screenshot.png)
Expand All @@ -19,7 +21,7 @@ If you are not using timezone but only a few simple functions from moment.js, th
| [Moment.js](https://momentjs.com/) | 329K(69.6K) | No | 42.1k | High | OO | Good(moment-timezone) | 123 |
| [Luxon](https://moment.github.io/luxon/) | 59.9K(17.2K) | No | 8.6k | High | OO | Good(Intl) | - |
| [date-fns](https://date-fns.org) | 78.4k(13.4k) without tree-shaking | Yes | 19k | High | Functional | Not yet | 50 |
| [dayjs](https://github.com/iamkun/dayjs) | 6.5k(2.6k) without plugins | No | 23k | High | OO | Not yet | 130 |
| [dayjs](https://github.com/iamkun/dayjs) | 6.5k(2.6k) without plugins | No | 23k | High | OO | Not yet | 130 |

## Voice of Developers

Expand Down Expand Up @@ -140,7 +142,7 @@ npm install --save-dev eslint-plugin-you-dont-need-momentjs
| Day of Week |||||
| Day of Year |||||
| Week of Year |||| ⚠️ |
| Days in Month |||||
| Days in Month |||| |
| Weeks in Year |||| ⚠️ |
| Maximum of the given dates |||| ⚠️ |
| Minimum of the given dates |||| ⚠️ |
Expand Down

0 comments on commit 06cd3f6

Please sign in to comment.