Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mefody/currency-converter
Currency converter using YAHOO API
https://github.com/mefody/currency-converter
Last synced: about 20 hours ago
JSON representation
Currency converter using YAHOO API
- Host: GitHub
- URL: https://github.com/mefody/currency-converter
- Owner: MeFoDy
- License: gpl-3.0
- Created: 2016-02-20T12:29:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-02-20T13:48:33.000Z (over 8 years ago)
- Last Synced: 2023-08-13T00:01:22.195Z (over 1 year ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Currency Converter script
Currency converter using YAHOO API
---
## UsageJust call `currency.rb` as `ruby currency.rb [amount] [currency]`, where
* `amount` - amount of your money (1000 default);
* `currency` - your current currency: BYR (default), EUR, USD or RUB.Result looks like:
```
user@user:~$ ruby currency.rb 1000000 BYR
USD 46.296
EUR 41.587
RUB 3566.308
```## Alias
To use this script with Terminal as fast command just add this string to your `~/.bash_profile`:
```
alias curconv="ruby ~/currency.rb"
```Change `curconv` to your own alias. `~/currency.rb` is the path to my script, change it too.
After these manipulations you can call this script like `curconv 10000 USD`.