Dinero.js

Dinero.js

An immutable JS library for working with monetary values 💰⚒

2 followers

Dinero.js makes it easy to create, calculate and format monetary values in JavaScript. You can perform arithmetic operations, extensively parse and format them, check for a number of things to make your own development process easier and safer.
Dinero.js gallery image
Dinero.js gallery image
Launch Team
Flowstep
Flowstep
Generate real UI in seconds
Promoted

What do you think? …

Idris Mokhtarzada
I like this idea a lot, and will probably use it! A few suggestions: 1) Expose a `Dinero` global on your docs page, so we can play around with it in the console. Other libraries do this and I love it. 2) Add something about file size (minified) to your docs page. I dug around a bit and it looks like it's around 4.4KB minified. 3) Would be nice to have types (TypeScript or Flow). If we end up using this, I will likely create and add Flow types to the `flow-typed` repository.
Idris Mokhtarzada
Another bit of caution: Watch out for currencies with more than 2 decimal places, like Bitcoin.
Sarah Dayan
@idris_mokhtarzada You can specify the number of decimal places in v1.3.0 🎉 https://github.com/sarahdayan/di...
Opeyemi Obembe
Took me a while to find a link to the [Github] source.
Sarah Dayan
@kehers It's on the PH page, but I've added a ribbon on the docs page now 👍
Blanka Mayer
I would like to use your product.
Kristian Freeman
> immutable and chainable API 💪
Milan
Can you build a library for other cryptos as well:)? I like this very much.
Sarah Dayan
@mkovacev I would first need to link into the specifics of cryptocurrencies but that's an idea 🙂 Would probably make it a plugin for Dinero.
Filippo Mursia
Hello @frontstuff_io ok I'm not a developer but soon I'll need something to work with double currencies in a online store, I was wondering what's the difference between Dinero.js and Money.js?
Sarah Dayan
@mrdobelina Hey! Money.js is a currency conversion library, while Dinero.js allows you to create a data structure to represent, calculate and format monetary values. I've planned to implement currency conversion as well in the near future though. For now if you need currency conversion, you could probably use Dinero.js and Money.js together.
Filippo Mursia
@frontstuff_io got it, thanks!
Austin Turner
I just got an email about your product from the Changelog Nightly repo report - http://nightly.changelog.com/201... - this is amazing - great work! I would love to see Tyepscript typings included in the library, but I am sure the community will provide them if you prefer to work on the core :) Again - great job!
Sarah Dayan
@paustint Thanks! The core needs some touch-ups before I can focus on TS or Flow alternatives, but I'm open to it!