File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
# fast-currency-transformer
2
- The Fastest NPM Package to transform data from one currency to another
2
+ The Fastest NPM Package to transform data from one currency to another
3
3
4
- # How to use this package?
4
+ # Installation
5
5
6
- Convert Currency:
6
+ ``` shell
7
+ npm i fast-currency-transformer
8
+ ```
9
+
10
+ # Usage
11
+
12
+ - ` fromCurrency ` -> Takes the currency you want to convert ` from ` .
13
+ - ` toCurrency ` -> Takes the currency you want to convert ` to ` .
14
+ - value -> Takes the value / units of ` fromCurrency ` .
15
+
16
+ It will return the converted live currency value based on the real-time currency conversion data.
17
+
18
+ ### Convert Currency:
7
19
8
20
``` js
21
+ import { convertCurrency } from " fast-currency-transformer" ;
22
+
9
23
convertCurrency (" fromCurrency" , " toCurrency" , value) // value: The value of the currency you want to convert from.
10
24
```
11
25
12
26
13
- Example Use-Case:
27
+ ### Example Use-Case:
14
28
15
29
``` js
30
+ import { convertCurrency } from " fast-currency-transformer" ;
31
+
16
32
convertCurrency (" INR" , " USD" , 58700 ) // It will convert Rs. 58700 INR into Latest value of $ USD
17
33
```
You can’t perform that action at this time.
0 commit comments