bree icon indicating copy to clipboard operation
bree copied to clipboard

[feat] Change ms by better-ms

Open rodriciru opened this issue 9 months ago • 0 comments
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)

rodriciru avatar Jan 22 '25 13:01 rodriciru