paint-brush
Optimize Your Front End Applications by Migrating From Moment to Dayjsby@pankajpatel
298 reads

Optimize Your Front End Applications by Migrating From Moment to Dayjs

by Pankaj3mNovember 18th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

HolidayPirates GmbH used moment.js to transform and manipulate dates in its frontend app. The company decided to use a new version of the library called dayjs. The dayjs provides a plugin called 'Advanced Format' which extends the capabilities of dayjs to extend the capabilities. Dayjs is very much immutable & tree shakable and its instance does not mutate the behavior of other instances. We had to de the following every time we used the dayjs: Initialization with a format was not possible: Locale assignment has to be done every time you import a module.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Optimize Your Front End Applications by Migrating From Moment to Dayjs
Pankaj HackerNoon profile picture
Pankaj

Pankaj

@pankajpatel

L O A D I N G
. . . comments & more!

About Author

Pankaj HackerNoon profile picture
Pankaj@pankajpatel

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here