pedrualves / moeda

:moneybag: :chart_with_upwards_trend: A foreign exchange rates and currency conversion using CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

moeda

Build Status GitHub version npm version

A foreign exchange rates and currency conversion using cli

demo gif

Info

The moeda use JSON API Fixer.io for current and historical foreign exchange rates published by the European Central Bank. The rates are updated daily around 4PM CET.

Install

$ npm install -g moeda

CLI

Usage
  $ moeda <amount> <currency> [<...currencies>]

Some currency
  [ usd, eur, gbp, brl... ]

Examples
  $ moeda 1 usd

Result
             Euro: 0.92
  Libra Esterlina: 0.82
   Real Brazilian: 3.15

  Conversion of USD 1

Your own currencies to convert

  $ moeda 1 usd eur rub aud

Result

             Euro: 0.91
   Russian Rouble: 62.92
Australian Dollar: 1.30

  Conversion of USD 1

Contributing

Help improve these docs. Open an issue or submit a pull request.

  1. Navigate to the main page of the repository
  2. Fork it!
  3. Create your feature branch: git checkout -b my-new-feature
  4. Commit your changes: git commit -m 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request =D

History

See Releases for detailed changelog.

License

MIT License © Emerson Thompson

About

:moneybag: :chart_with_upwards_trend: A foreign exchange rates and currency conversion using CLI

License:MIT License


Languages

Language:JavaScript 100.0%