bree
bree copied to clipboard
[feat] Change ms by better-ms
trafficstars
Changing the ms library by this https://github.com/gae-labs/betterMsJs/ fixes some ms problems, like
- round
- https://github.com/vercel/ms/issues/140
- https://github.com/vercel/ms/issues/142
- lots of new ways to write times (
betterMs('2 days 6 hours 30 minutes 15 seconds')) - maybe the possibility of remove human-interval because it looks like it can do the same
I get to this because I try to parse milliseconds to human with ms https://github.com/vercel/ms?tab=readme-ov-file#convert-from-milliseconds and the human-interval date of 3 days and 4 hours (which human-interval correctly sets to 273600000 was rounded to 3 days)