11# Currency-Conv - Currecny converter
22
3- [ ![ https://www.powershellgallery.com/packages/Currency-Conv/0.9.0 ] ( https://img.shields.io/badge/PowerShell%20Gallery-download-blue.svg?style=popout&logo=powershell )] ( https://www.powershellgallery.com/packages/Currency-Conv/0.9.0 )
4-
3+ [ ![ PowerShell 3] ( https://dev.azure.com/Stadub-Gh/PowershellScripts/_apis/build/status/Currency-Conv?branchName=master )] ( https://dev.azure.com/Stadub-Gh/PowershellScripts/_build/latest?definitionId=5&branchName=master )
4+ [ ![ PowerShell 4, 5 & Core on Windows build] ( https://ci.appveyor.com/api/projects/status/7tmg8wy30ipanjsd?svg=true )] ( https://ci.appveyor.com/project/stadub/powershellscripts )
5+ [ ![ Linux & MacOS build] ( https://img.shields.io/travis/stadub/PowershellScripts/master.svg?label=linux/macos+build )] ( https://travis-ci.org/stadub/PowershellScripts )
6+ [ ![ latest version] ( https://img.shields.io/powershellgallery/v/Currency-Conv.svg?label=latest+version )] ( https://www.powershellgallery.com/packages/Currency-Conv/ )
7+ [ ![ downloads] ( https://img.shields.io/powershellgallery/dt/Currency-Conv.svg?label=downloads )] ( https://www.powershellgallery.com/packages/Currency-Conv )
58<!-- [Documentation](https://powershellscripts.readthedocs.io/en/latest/) -->
69
710---------------------
811
912![ ConsoleDemo] ( https://raw.githubusercontent.com/stadub/PowershellScripts/master/Currency-Conv/Assets/demo.gif )
1013
14+ ## Instalation
15+
16+ Powershell Gallery:
17+
18+ [ ![ https://www.powershellgallery.com/packages/Currency-Conv/ ] ( https://img.shields.io/badge/PowerShell%20Gallery-download-blue.svg?style=popout&logo=powershell )] ( https://www.powershellgallery.com/packages/Currency-Conv/ )
19+
20+ ` PowerShellGet ` Installation :
21+
22+ ``` powershell
23+ Install-Module -Name Currency-Conv
24+ ```
25+
26+ Direct download instalation:
27+
28+ ``` powershell
29+ iex ('$module="Currency-Conv"'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/stadub/PowershellScripts/master/install.ps1'))
30+ ```
31+
32+ Module import:
33+
34+ ``` powershell
35+ Import-Module Currency-Conv
36+ ```
37+
1138## Commands
1239
1340``` powershell
@@ -19,20 +46,35 @@ Get-ExchangeRate - Get exchange rate for amount
1946Get-Countries -Countries list with currencies
2047
2148Get-Currencies - Supported currencies list
49+
50+ Remove-CurrencyApiKey- Clean key
2251```
2352
2453## Aliases
2554
26- | Cmdlet | Alias |
27- | -----------------| :--------:|
28- | Get-Currencies | gxc | xe |
55+ | Cmdlet | Alias |
56+ | -----------------| :-----:|
57+ | Get-Currencies | gxc |
58+ | Get-ExchangeRate | xe |
59+
60+ ## Cache Timeouts
61+
62+ Default cache timeouts are stored in global variables so it can be changed to meet your needs.
63+
64+ Default values:
65+
66+ ``` powershell
67+ $global:CurrencyConvExchangeRateCahcheLifetime = $([System.DateTimeOffset]::Now.AddSeconds(60.0))
68+ $global:CurrencyConvCountriesCahcheLifetime = $([System.DateTimeOffset]::Now.AddHours(15.0))
69+ $global:CurrencyConvCurrenciesCahcheLifetime = $([System.DateTimeOffset]::Now.AddHours(15.0))
70+ ```
2971
3072## Usage
3173
3274Currency exchange rates:
3375
3476``` powershell
35- /> Get-ExchangeRate USD BYN 5
77+ /> Get-ExchangeRate All BDD 5
3678```
3779
3880``` powershell
@@ -63,29 +105,24 @@ List supported currencies:
63105/> Get-Currencies
64106```
65107
66- ## Changelog
67-
68- ### [ v0.9.0] ( https://github.com/stadub/PowershellScripts/releases/tag/v0.8.2 ) May 17, 2019
69-
70- * Add demo gif and documentation
71-
72- ### [ v0.8.5] ( https://github.com/stadub/PowershellScripts/releases/tag/v0.8.0 )
108+ Remove currconv.com api key fromthe system:
73109
74- * Move module to individual foler.
75- * Create Markdown page.
76-
77- ### [ v0.8.1] ( https://github.com/stadub/PowershellScripts/releases/tag/v0.2.0 )
110+ ``` powershell
111+ /> Remove-CurrencyApiKey
112+ ```
78113
79- * Separate functions and aliases.
114+ ## Changelog
80115
81- ### [ v0.8 .0] ( https://github.com/stadub/PowershellScripts/releases/tag/v0.1.0 )
116+ ### [ v1.5 .0] ( https://github.com/stadub/PowershellScripts/releases/tag/v0.9.5 ) Spet 9, 2019
82117
83- * Add module methods description.
118+ * Add Request cache #12
119+ * Add ability to change cache timeount #12
84120
121+ * Rename ` Remove-CurrencyApi-Key ` to ` Remove-CurrencyApiKey ` to be ps1 cmdlet name restrictions compliant
85122
86- ### [ v0.7.0 ] ( https://github.com/stadub/PowershellScripts/releases/tag/v0.1 .0 ) Mar 18 , 2019
123+ ### [ v1.0.2 ] ( https://github.com/stadub/PowershellScripts/releases/tag/v0.9 .0 ) Spet 1 , 2019
87124
88- * Added exchange convertion functions:
125+ * Add functions:
89126
90127``` powershell
91128Get-ExchangeRate - Get exchange rate for amount
@@ -97,19 +134,25 @@ Get-Countries -Countries list with currencies
97134
98135Get-Currencies - Supported currencies list
99136
137+ Remove-CurrencyApi-Key- Clean key
100138```
101139
140+ * Create tests
141+
102142## Motivation
103143
104- Hi, I written this module( and other modules of the repo) for my own usage .
105- But if you found it usefull you can Buy me a beer/cup of tee😊
144+ The modules are created and actively maintained during evenings and weekends for my own needs .
145+ If it's useful for you too, that's great. I don't demand anything in return.
106146
107- <!-- By Paypal [](https://www.paypal.me/dima.by)
147+ However, if you like it and feel the urge to give something back,
148+ a coffee or a beer is always appreciated. Thank you very much in advance.
108149
109- <> Or
150+ [ ![ Buy Me A Coffee] ( https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png )] ( https://www.buymeacoffee.com/dima )
151+ [ ![ Support by Yandex] ( https://raw.githubusercontent.com/GitStatic/Resources/master/yaMoney.png )] ( https://money.yandex.ru/to/410014572567962/200 )
152+
153+ <!-- By Paypal [](https://www.paypal.me/dima.by)
110154 -->
111- [ ![ Yandex Money] ( https://money.yandex.ru/i/ym2015_icon.png )] ( https://money.yandex.ru/to/410014572567962 )
112155
113- <!-- Yandex Money (https://money.yandex.ru/i/ym2015_icon.png)(https://money.yandex.ru/to/410014572567962) -->
156+ If you have any idea or suggestion - please add a github issue.
114157
115- If you have any idea or suggestion - please add a github issue and I'll try to implement it😉
158+ <!-- https://www.contributor-covenant.org/version/1/4/code-of-conduct -->
0 commit comments