how-much

    1.0.0 • Public • Published

    Deprecated

    No Maintenance Intended

    Use fixer-api instead.


    how-much

    Get the currency conversion of an exchange rate

    npm version Build Status Test coverage

    Install

    npm install --save how-much

    Usage

    const howMuch = require('how-much');
     
    howMuch('USD', 'MXN').then(rate => {
      console.log(rate);
      //=> 18.368
    });

    API

    howMuch(from, to)

    Returns a promise that resolves to a number value of the exchange rate.

    from

    Type: string

    The ISO 4217 code used as a currency base.

    to

    Type: string

    The ISO 4217 code of the target of the currency conversion.

    Related

    • how-much-cli - Get the currency conversion of an exchange rate through the command-line

    License

    MIT © Alejandro Beltrán

    Install

    npm i how-much

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.55 kB

    Total Files

    5

    Last publish

    Collaborators

    • alebelcor