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
- Host: GitHub
- URL: https://github.com/yeukfei02/currencyfinder
- Owner: yeukfei02
- License: mit
- Created: 2020-05-23T07:21:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-02T20:12:54.000Z (over 2 years ago)
- Last Synced: 2025-01-11T01:26:56.896Z (over 1 year ago)
- Topics: currency, deno, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/currency_finder
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# currencyFinder
[](https://doc.deno.land/https/deno.land/x/currency_finder/mod.ts)
[](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"
},
...
]
```