Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

currex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currex

CLI currency exchange rate calculator based on the free exchangerate-api.com api

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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:

FAQs

Package last updated on 02 Jan 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc