
google-currency-scraper
Scrape extremely up-to-date exchange rates from Google fast and for free, with only one external dependency.
Install
npm install google-currency-scraper
Usage
import googleCurrencyScraper, { CurrencyCode } from "google-currency-scraper";
const currency = await googleCurrencyScraper({
from: CurrencyCode.USD,
to: CurrencyCode.TRY
});
API
googleCurrencyScraper(params) : object
params
Default: {}
Type: object
Required: Yes
params.from
Type: CurrencyCode | string
Required: Yes
params.to
Type: CurrencyCode | string
Required: Yes
CurrencyCode
It's a helper object that contains all currency codes.
License
