Skip to content

Currency library for converting currency pairs and getting exchange rates.

License

Notifications You must be signed in to change notification settings

thoughtsunificator/currency

Repository files navigation

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)