Open CasperEngl opened 3 years ago
Fixes #124 and #142
@leerob Is anyone going through PRs on this repo?
Yes, our current focus right now with ms
is stability. We have a canary release that publishes ESM and converts to TypeScript: https://github.com/vercel/ms/releases
All right. I'll see if I can change the target branch from master to canary 👍
Those changes have been merged into master
(will be main
soon), there's just a canary release to test it out first. Main point was we're targeting stability, so likely will be slower to add new features to ms
. There are over 100M weekly downloads of ms
, so we're extremely cautious about what we add.
Thumbs up on this PR could be a good way to indicate how many people would like to see this feature land 👍
I see. Thank you.
Current conflicts have been resolved. I've also fixed some issues, having to do with the package name and lock file, since I had been using this package myself, deployed to npm.
This PR enables rounding through the
round
option.round
defaults to true and current solutions will continue to behave the same.When
round
is set to false, all rounding is disabled.When
round
is set to a number, it is used as precision fortoFixed
.