Socket
Book a DemoInstallSign in
Socket

google-currency-scraper

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-currency-scraper

Scrape extremely up-to-date exchange rates from Google fast and for free, with only one external dependency.

latest
Source
npmnpm
Version
3.2.0
Version published
Weekly downloads
11
37.5%
Maintainers
0
Weekly downloads
 
Created
Source

Downloads Version

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, // You can use "USD" as well
    to: CurrencyCode.TRY // You can use "TRY" as well
});
// {
//     from: "USD",
//     to: "TRY",
//     rate: 32.2434,
//     dateUpdated: "May 19, 13:59 UTC"
// }

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

License

Keywords

scraper

FAQs

Package last updated on 09 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts