An open API service indexing awesome lists of open source software.

https://github.com/basebandit/gocash

Command line currency converter
https://github.com/basebandit/gocash

currency-converter currency-exchange-rates go-cli go-cli-example golang

Last synced: about 1 month ago
JSON representation

Command line currency converter

Awesome Lists containing this project

README

          


Icon PNG

gocash


Convert Currency Rates directly from your Terminal!

[![Go Report Card](https://goreportcard.com/badge/github.com/basebandit/gocash)](https://goreportcard.com/report/github.com/basebandit/gocash) [![GitHub license](https://img.shields.io/github/license/basebandit/gocash)](https://github.com/basebandit/gocash/blob/master/LICENSE)

Icon PNG

## Install

```
go get -u github.com/basebandit/gocash/cmd/cash
```
Copy the following files to the `.gocash` directory inside your home directory
- [currencies.json](https://github.com/basebandit/gocash/blob/master/currencies.json) file
- [config.json](https://github.com/basebandit/gocash/blob/master/config.json) file

## Usage

> You will need a Fixer.io API key. Get it [here](https://fixer.io/signup/free) for free.

```bash
Usage
$ cash
$ cash
Examples
$ cash 10 usd eur pln aud kes tzs ugx
```

## Available Currencies

See [currencies.json](https://github.com/basebandit/gocash/blob/master/currencies.json) file.

## ToDo:
- Memoization
- Tests

## Thanks:
- [xxczaki](https://twitter.com/dokwadratu) for an awesome [tool](https://github.com/xxczaki/cash-cli), that inspired me to write a similar one in golang.
- [Money.js](http://openexchangerates.github.io/money.js/) for inspiring me to write my own golang version of the same library.
- [Fixer.io](http://fixer.io/) for providing awesome currency conversion API.
-

Icons made by Smashicons from www.flaticon.com is licensed by CC 3.0 BY

## License

[MIT](https://opensource.org/licenses/MIT)