1.0.4 • Published 2 years ago

all-currency-converter v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago