Skip to content

MelodicCrypter/Konvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tool (NPM package) for fetching latest currency conversion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published