Code Monkey home page Code Monkey logo

cash-cli's Introduction

cash-cli

Convert Currency Rates directly from your Terminal!

Build Status npm Downloads Code Style Mentioned in Awesome Node.js

SVG

Highlights

  • Fast & Simple
  • Supports multiple APIs
  • Caches API results

Install

via npm πŸ“¦ npm

npm install --global cash-cli

via homebrew 🍺 homebrew

brew install cash-cli

Usage

	Usage
		$ cash <amount> <from> <to>
		$ cash <options>
	Options
		--api -a	        Configure API source
		--save -s 			Save default currencies
	Examples
		$ cash --api
		$ cash 10 usd eur pln
		$ cash --save usd aud

Supported APIs

Right now, cash-cli supports the following APIs:

If you want cash-cli to support your favorite API, please open an issue πŸ˜„

Related projects

  • gocash - Copy of cash-cli, written in golang.

License

MIT

cash-cli's People

Contributors

bjesus avatar dependabot-support avatar gitbook-bot avatar greenkeeper[bot] avatar xebuz avatar xxczaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cash-cli's Issues

Internal server error on macOS

While testing version 2.1.0 of cash-cli for Homebrew (Homebrew/homebrew-core#34565), we are seeing an Internal server error on a very simple operation:

==> /usr/local/Cellar/cash-cli/2.1.0/bin/cash 100 INR USD GBP
- Converting...
βœ– Internal server error :(

Error: cash-cli: failed

The same error was already occurring with version 2.0.8.

An in-range update of xo is breaking the build 🚨

Version 0.20.0 of xo was just published.

Branch Build failing 🚨
Dependency xo
Current Version 0.19.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

xo is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci Your tests failed on CircleCI Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 59 commits ahead by 59, behind by 1.

  • 56d9891 0.20.0
  • a22e5dc 0.19.0
  • 6245086 Disable enforceForRenamedProperties for prefer-destructuring (#297)
  • 652a6e5 Remove deprecated --compact CLI flag (#293)
  • 60fd100 Force bump dependencies
  • f1bb0a1 Bump eslint-config-xo
  • 414ad2d Bump eslint-plugin-unicorn
  • 552cbb1 Update globby to the latest version (#295)
  • 6d8a93b Update URL to new org
  • 9859dfb Set ecmaVersion to 2018
  • 8526f2e Bump eslint-plugin-node
  • 34dca07 Disable the node/exports-style rule
  • 42e03f1 Disable the node/no-unpublished-require/import rules
  • 61a85cf Revert JSDoc plugin (#291)
  • 07df074 Add related package to readme (#290)

There are 59 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

https://api.exchangeratesapi.io/latest requires access key

Hi, great little util. Used this last month was fine, now getting pretty terse error.

βœ– Something went wrong :(

Traced the error in source, not much of an idea. But spotted what I think must be the default API here

const API = config.get('apiSource') || 'https://api.exchangeratesapi.io/latest';

Trying to access directly receive the following error:

{ "success": false, "error": { "code": 101, "type": "missing_access_key", "info": "You have not supplied an API Access Key. [Required format: access_key=YOUR_ACCESS_KEY]" } }

Perhaps I've missed somewhere the API Access key is provided, if not suggests the endpoint now require auth and new endpoint required.

An in-range update of got is breaking the build 🚨

Version 8.3.2 of got was just published.

Branch Build failing 🚨
Dependency got
Current Version 8.3.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

got is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci Your tests failed on CircleCI Details

Release Notes v8.3.2

Fix Got throwing an error in some cases when trying to pipe one got.stream into another one. 7ac705f

Commits

The new version differs by 2 commits.

  • ad7b361 8.3.2
  • 7ac705f fix Buffer.byteLength(req._header) throwing error (#490)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Update brew

Hello!
Could you please update brew formula to the latest version?
Now it is 2.0.8

An in-range update of xo is breaking the build 🚨

Version 0.21.1 of xo was just published.

Branch Build failing 🚨
Dependency xo
Current Version 0.21.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

xo is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci Your tests failed on CircleCI Details

Release Notes v0.21.1

Fix space/useTabs conflict message with Prettier. 36f7f38

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Feature request: offline conversion

It would be awesome to be able to grab a snapshop of the current exchange values as a fall back. So that you can still use the program when you go offline

Homebrew 3.1.2 upgrade issue

Relates to Homebrew/homebrew-core#40673

Having issue with cash 10 usd eur pln and cash -key foo

$ /usr/local/Cellar/cash-cli/3.1.0/bin/cash 10 usd eur pln
/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/node_modules/conf/index.js:58
				throw new Error('Project name could not be inferred. Please specify the `projectName` option.');
				^

Error: Project name could not be inferred. Please specify the `projectName` option.
    at new Conf (/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/node_modules/conf/index.js:58:11)
    at Object.<anonymous> (/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/bin/cash.js:10:16)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/bin/index.js:9:14)
$ /usr/local/Cellar/cash-cli/3.1.0/bin/cash -key foo
/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/node_modules/conf/index.js:58
				throw new Error('Project name could not be inferred. Please specify the `projectName` option.');
				^

Error: Project name could not be inferred. Please specify the `projectName` option.
    at new Conf (/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/node_modules/conf/index.js:58:11)
    at Object.<anonymous> (/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/bin/cash.js:10:16)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/Cellar/cash-cli/3.1.0/libexec/lib/node_modules/cash-cli/bin/index.js:9:14)

ignore `to` keyword

Example:
cash 10 usd to sgd

Should ignore to without trying to find it as a currency.

Most people will likely want to type in natural language 😊

Setting default currencies

Hi! Thanks for cash-cli, it works beautifully.

Is there a way to set the default currencies somehow? So that whatever I throw at cash I'll get them back? Right now it seems that the default is set to USD, EUR, GBP and BRL, but I was wondering if this shouldn't be configurable.

Thank you!

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.