import mc from "./lib";
// Setting currencies
mc.rates = {
AUD: 1.58, // 1.40 EUR === 1.58 AUD
RUB: 92.131,
USD: 1.21,
EUR: 1.4,
};
// Setting the base currency for the calculation
mc.base = "RUB";
// Convert
mc.convert(1000, "AUD", "RUB");
-
Notifications
You must be signed in to change notification settings - Fork 2
Simple currency conversion library
License
uwucka/MoneyConverter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple currency conversion library
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published