New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Substitute for moment.js #195
Comments
@chaffeqa there have been some discussion in the past about replacing momentjs: #144 I haven't evaluated the idea of using luxon but what I'm seeing over that fork looks very promising. Other option is to use DayJS (\w Timezone Plugin) which should lead to even smaller bundle. If somebody is brisk enough to formalize it as a PR, I would be more than willing to contribute and help to get this merged as soon as possible. |
oooo nice! yeah i think the issue is that other libs use this one, such as https://github.com/OptimalBits/bull/blob/develop/package.json#L23 Actually looking at |
I don’t think this module should concern itself with timezones. If people want to run cronjobs on zones other than UTC, they can use their own library to add/subtract the hours (if a library is needed at all) I’ve been looking for a lightweight crontab parser and I’ve found that they all weigh 500kb minified, which is a whole lot. Now I see why that is: Moment. |
https://github.com/luoxlgh/cron-parser fork that uses date-fns, ie. just regular |
I have just published an npm-package called lw-cron-parser that excludes timezone functionality and utilizes Day.js instead of Moment-Timezone. I think this is the best alternative until pull request #196 is merged. |
https://github.com/cheap-glitch/mi-cron A collaborator of mine wrote this. It’s super small and just outputs a Date object which you can manipulate as you wish, if needed at all. |
For me, time zone support completes this library 😃 so I hope the functionality remains. |
momentjs is officially not being supported which makes sense... especially for this project which is 100% nodejs based afaik.
The fact that you have to install both momentjs and the locals to support this library (which is included in many other libraries that may not even use it... like we do for bulljs) it would be great if it was lighter in its dependencies.
Is there something I could help contribute to move in that direction?
The text was updated successfully, but these errors were encountered: