An alternative to libraries such as moment.js, day.js, and date-fns, Tempo is a new package designed to simplify working with dates in JavaScript and TypeScript.
Tempo is best thought of as a collection of utilities for working with Date objects โ an important distinction from other libraries that provide custom date primitives.
To start using Tempo, simply run the following command:
Then import only the necessary functions, which is great for tree shaking:
To learn more about this library, visit their documentation at tempo.formkit.com. You can also find the source code on Github.