1.0.8 • Published 4 years ago

exchange-rate-dolarhoy v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Retreieve the exchange rate from Dolarhoy

The default rate is USD to ARS but you can specify others currencies:

  • USD_BRZ ==> Real ( BRZ )
  • USD_CLP ==> Peso Chile ( CLP )
  • USD_UYU ==> Peso Uruguay ( UYU )

Installation

npm

npm install --save  exchange-rate-dolarhoy

Usage

1- Import the component into your project

import { exchangeRate }     from "exchange-rate-dolarhoy" ;

2- Call the widget ( Default is USD to ARS )

exchangeRate.getRateDolarHoy({conversion:'USD_ARS'})
    .then((rate)=>{
        console.log('...rate: ',rate) ;
    })
    .catch((err)=>{
        console.log('...error: ',err);
    }) ;

Result:

{
    "date": "YYYY-MM-DD",
    "rate": 9999.999
}
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago