konvert

1.0.2 • Public • Published

Konvert

NPM   npm

Konvert is a node module for fetching latest currency conversion. It can also get which countries the user can spend the target-currency.

Installation

npm i konvert

or

yarn add konvert

Usage

Require konvert module.

const {konvert, konvertCountries} = require('konvert');



Getting the current currency conversion.

// convert 20 pounds to Philippine peso

konvert('GBP', 'PHP', 20)

   .then(amount => console.log(amount));



Getting all supported countries for the target-currency

// get all countries that support pounds

konvertCountries('GBP')

   .then(countries => console.log(countries));

/konvert/

    Package Sidebar

    Install

    npm i konvert

    Weekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.34 kB

    Total Files

    5

    Last publish

    Collaborators

    • melodic_crypter