pjbatista/decimal.js-i18n

Provide a Version Only Exporting Format Helpers

Opened this issue · 1 comments

Importing and mutating decimal.js seems like it could cause conflicts with other modules. It seems like this is necessary for some reason according to this comment, but why is unclear to me.

// In order to appropriately represent the Format class, it needs to be placed on Decimal as a 'static' member:

Could we instead have a version of this library which does no automatic patching but instead exports the Decimal.Format object?

Happy to make a PR once we've decided! Thanks so much for making this library!!

Sorry about the delay! I was working exactly on that before my burnout haha

If that PR is still possible I'm very much looking forward to it. Otherwise, I'll start working on that again.