Skip to content

uwucka/MoneyConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use?

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");

About

Simple currency conversion library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published