currex
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

currex

CLI currency exchange rate calculator based on the free exchangerate-api.com api, using USD as a base to convert between currencies not supported via direct query of the free api.

Requirements:

You will need a free api key from exchangerate-api.com. You do not need a paid subscription to be able to freely convert between any of the supported currencies.

Examples:

> npx currex usd to cad
1 USD is equivalent to 1.27 CAD as at Sat Jan 02 2021 02:00:02 GMT+0200 (South Africa Standard Time)

> npm currex 14.99 aud to cad
14.99 AUD is equivalent to 14.72 CAD as at Sat Jan 02 2021 02:00:02 GMT+0200 (South Africa Standard Time)

currex may also be imported as a module, providing the convert function:

await convert({
    from: "GBP",
    to: "AUD",
    fromAmount: 12.75
}, "your_api_key");

Credits:

Readme

Keywords

none

Package Sidebar

Install

npm i currex

Weekly Downloads

0

Version

1.2.0

License

BSD-3-Clause

Unpacked Size

12.6 kB

Total Files

17

Last publish

Collaborators

  • fluffynuts