sorosz89 / replace-moment

Tiny evaluation of moment.js alternatives

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

replace-moment

Tiny evaluation of moment.js alternatives

Background

"Moment.js has been successfully used in millions of projects, and we are happy to have contributed to making date and time better on the web. As of September 2020, Moment gets over 12 million downloads per week! However, Moment was built for the previous era of the JavaScript ecosystem. The modern web looks much different these days. Moment has evolved somewhat over the years, but it has essentially the same design as it did when it was created in 2011. Given how many projects depend on it, we choose to prioritize stability over new features.

"We now generally consider Moment to be a legacy project in maintenance mode. It is not dead, but it is indeed done."

Possible alternatives

Name Description Examples
Intl The Intl object is the namespace for the ECMAScript Internationalization API
Luxon A powerful, modern, and friendly wrapper for Javascript dates and times.
date-fns The most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js. date-fns examples
day.js Fast 2kB alternative to Moment.js with the same modern API day.js examples

Usage

Installation

yarn

Execution

yarn timing

About

Tiny evaluation of moment.js alternatives

License:MIT License


Languages

Language:JavaScript 100.0%