@thoughtsunificator/currency
v1.0.7
Published
Currency library for converting currency pairs and getting exchange rates.
Downloads
10
Readme
currency
Currency library for converting currency pairs and getting exchange rates.
This is a Fetch abstraction for free-exchange-rates-api.
Getting started
Installing
npm install @thoughtsunificator/currency
Usage
import Currency from "@thoughtsunificator/currency"
const rate = await Currency.rate("USD", "EUR")
const value = Currency.convert(rate, 250)