0.1.0 • Published 3 years ago

tcmb-rates v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

tcmb-rates

Get The Central Bank of the Republic of Turkey's daily currency rates in a JSON format.

Installation

Using npm:

npm i tcmb-rates

In Node.ls

// Load the package
var tcmb_rates = require('tcmb-rates');

// get today's (yesterday's) rate in US Dollars:
tcmb_rates.getRate().then(res => console.log(res)).catch(err => console.error(err.message));

// get today's (yesterday's) rate in Euros:
tcmb_rates.getRate('30052021','EUR').then(res => console.log(res)).catch(err => console.error(err.message));

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

ISC

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago