Coder Social home page Coder Social logo

moeda's Introduction

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

Standard - JavaScript Style Guide

History

See Releases for detailed changelog.

License

MIT License © Emerson Thompson

moeda's People

Contributors

thompsonemerson avatar cjpatoilo avatar alcovegan avatar suissa avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.