Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aviskarkc10/forex
A cli tool to view the exchange rates of foreign currencies against NPR from Nepal Rastra Bank's api https://www.nrb.org.np/exportForexJSON.php
https://github.com/aviskarkc10/forex
Last synced: 3 months ago
JSON representation
A cli tool to view the exchange rates of foreign currencies against NPR from Nepal Rastra Bank's api https://www.nrb.org.np/exportForexJSON.php
- Host: GitHub
- URL: https://github.com/aviskarkc10/forex
- Owner: aviskarkc10
- License: mit
- Created: 2019-10-08T12:45:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T06:41:35.000Z (about 5 years ago)
- Last Synced: 2024-06-20T16:35:15.096Z (5 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nepal - forex - A cli tool to check the foreign exchange rates against Nepal's currency using Nepal Rastra Bank's api. (Uncategorized / Uncategorized)
README
# forex
A cli tool to check the foreign exchange rates against Nepal's currency using Nepal Rastra Bank's [API](https://www.nrb.org.np/exportForexJSON.php).
## Installation
You can install `forex` by running:
```sh
$ go get github.com/aviskarkc10/forex
```Make sure your PATH includes the $GOPATH/bin directory so your commands can be easily used:
```
export PATH=$PATH:$GOPATH/bin
```## Usage
To view the available commands, run:
```sh
$ forex
```To view the foreign exchange rates of all the available countries, run:
```sh
$ forex list or forex l
```To convert a foreign currency to NPR, run:
```sh
$ forex convert
```For example:
```sh
# Convert 1 American dollar to NPR
$ forex convert 1 USD or forex c 1 USD
1.00 USD -> 113.34 NPR# Convert 1 Indian Rupee to NPR
$ forex convert 1 INR or forex c 1 INR
1.00 INR -> 1.60 NPR
```## LICENSE
[MIT](LICENSE)