Skip to content

fawazshah/currency-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency Command Line Interface

A command line tool for currency conversion. Receives currency data using Fixer API.

Installation

First, make sure you have npm installed. This comes packaged with Node.js which can be downloaded at https://nodejs.org/en/.

To install globally:

sudo npm install -g currency-cli

Usage

All currencies must be input as their 3 letter code (e.g. USD, GBP).

currency seeall - see all available currencies and their 3 letter codes.

currency latest [currency] - get the latest value of [currency] (with respect to USD).

currency convert [amount] [currency1] [currency2] - convert [amount] of [currency1] to [currency2].

currency historical [date] [currency] get the value of [currency] (with respect to USD) at the given [date].

currency historicalconvert [date] [amount] [currency1] [currency2] - convert [amount] of [currency1] to [currency2], using currency values at the given [date].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published