Skip to content
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

[Question]: What's the status with v2? Are you looking for help? #764

Open
macdonaldr93 opened this issue Jan 19, 2024 · 5 comments
Open

Comments

@macdonaldr93
Copy link

Hey there! I'm trying to find a robust library to handle money in my applicaiton. dinero.js is by far the best one I've seen so far. I'm curious what the status is on V2? Are you looking for any additional help?

I'm more than happy to help. Writing another library to handle my specific use-case doesn't really make sense. I could fork dinero.js, but I don't like how JS community often ends up with multiple versions of the same library. I'd love for this to become the standard for Money.

Let me know!

Use case

I build Shopify Apps and I need a library to handle money. A few considerations for me:

  1. I'm doing calculations on large sums and multiple by percentages, I want to make sure I was bigints.
  2. I need a library where I can easily use strings for currency codes. Shopify's API returns an amount as a signed stringified decimal with arbitrary precision and a currency code as a string.
  3. I need to easily convert the money back to a decimal format to make API calls.

Dinero.js works great for 1. Although, I find passing around the generic a bit combursome. I'm wondering if there's an easier way to abstract that.

Dinero.js doesn't work great for 2. I want to import from the currencies library but all those currencies are using the number generic. They're incompatible once I've set the calculator to use bigint. It's a ton of work to rewrite all those currencies with bigints. Also, looking up the currency from the string to the object is a bit annoying. Not too bad, as I can write a helper. I'm just thinking this could be something nice for the library to handle and maybe provide a simpler interface.

Dinero.js works great for 3. I used the toDecimal helper.

@MikaelCarpenter
Copy link

Fwiw, I'm also happy to help out if needed 👍

@pierre-H
Copy link

pierre-H commented Apr 7, 2024

Hi @sarahdayan !

Thank you for your great work !
As DineroJS is a such important library, what is your answer for @macdonaldr93 ?

Thank you !

@ScreamZ
Copy link

ScreamZ commented Apr 18, 2024

As a safe alternative in the meantime, if you're not happy with v1 or v2 : https://github.com/MikeMcl/decimal.js

@palfaro91
Copy link

Any update on the status of v2? I wanted to use it but held back due to it being in alpha stage and we need it for a production api.

@viktorbasta
Copy link

I think this lib is dead tbh 💀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants