1.0.2 • Published 5 years ago

konvert v1.0.2

Weekly downloads
35
License
MIT
Repository
-
Last release
5 years ago

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));

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago