An open API service indexing awesome lists of open source software.

https://github.com/yeukfei02/currencyfinder

find currency information in deno
https://github.com/yeukfei02/currencyfinder

currency deno typescript

Last synced: about 2 months ago
JSON representation

find currency information in deno

Awesome Lists containing this project

README

          

# currencyFinder

[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/currency_finder/mod.ts)

[![nest badge](https://nest.land/badge.svg)](https://nest.land/package/currencyFinder)

find currency information in deno

```ts
// pick 1 to import
import * as currencyFinder from "https://deno.land/x/currency_finder/mod.ts";
import * as currencyFinder from "https://x.nest.land/currencyFinder/mod.ts";
import * as currencyFinder from "https://denopkg.com/yeukfei02/currencyFinder/mod.ts";
```

## findCurrencyByCode

```ts
const currency = await currencyFinder.findCurrencyByCode("HKD");
```

## findCurrencyByName

```ts
const currency = await currencyFinder.findCurrencyByName("hong kong");
```

## findCurrencyBySymbolNative

```ts
const currency = await currencyFinder.findCurrencyBySymbolNative("$");
```

## findAll

```ts
const currencyList = await currencyFinder.findAll();

// currencyList
[
{
symbol: "$",
name: "US Dollar",
symbol_native: "$",
decimal_digits: 2,
rounding: 0,
code: "USD",
name_plural: "US dollars"
},
{
symbol: "CA$",
name: "Canadian Dollar",
symbol_native: "$",
decimal_digits: 2,
rounding: 0,
code: "CAD",
name_plural: "Canadian dollars"
},
...
]
```