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.
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?
@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.
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.
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!
Tailry