exchange-rate-dolarhoy
Get exchange rate from dolarhoy.com
Last updated 2 months ago by sebaeze .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install exchange-rate-dolarhoy 
SYNC missed versions from official npm registry.

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
}

Current Tags

  • 1.0.8                                ...           latest (2 months ago)

8 Versions

  • 1.0.8                                ...           2 months ago
  • 1.0.7                                ...           2 months ago
  • 1.0.6                                ...           2 months ago
  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           2 months ago
  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |