1.1.0 • Published 1 year ago

curr-convertor v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

curr-convertor

A simple npm package for converting currency.

Installation

To use this package, you need to install it in your project.

npm install curr-convertor
  
  ## Usage

Import the `convertCurrency` function and use it in your code. Here's an example:

```javaScript
import convertCurrency from "curr-convertor";

convertCurrency("USD", "INR", 500)
  .then((res) => {
    console.log("Conversion result:", res);
  })
  .catch((err) => {
    console.error("Error during conversion:", err);
  });

Replace "USD", "INR", and 500 with your desired source currency, target currency, and amount.

1.1.0

1 year ago

1.0.0

1 year ago