all-currency-converter

1.0.4 • Public • Published

Introduction

Javascript library to convert currencies

Installation

npm install npm i all-currency-converter

How to use

import { convertCurrency } from 'all-currency-converter'

And Call it as function with parameter

convertCurrency(fromCurrency,toCurrency, Units)

Example

convertCurrency("USD","INR", 5)

Usage

node

    const filteredRates = data.find(rate => rate.from === fromCurrency && rate.to === toCurrency);
    return filteredRates.rate * units;

Build

npm run build

Contribute

If you would like to contribute your most welcome. clone the repository.

Package Sidebar

Install

npm i all-currency-converter

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

5.69 kB

Total Files

3

Last publish

Collaborators

  • pushpendrapaddi