exchangerate-api

0.1.0 • Public • Published

ExchangeRate API client

exchangerate-api.com

Installing the client library

npm install exchangerate-api

Using the client library

// Imports the library
const exchangeRateClient = require('exchangerate-api');
 
const result = await exchangeRateClient.ratesFor('USD')
  
result.getRate('EUR')
 
for(let [code, rate] of result){
  console.log(code, rate)
}
 
result.conversion('EUR', 10)

License

The gem is available as open source under the terms of the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i exchangerate-api

Weekly Downloads

9

Version

0.1.0

License

MIT

Unpacked Size

7.23 kB

Total Files

9

Last publish

Collaborators

  • jiren