2.0.0 • Published 2 years ago

geld-cli v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

geld-cli

Convert a number to a currency.

GitHub Workflow Status Coverage Status XO code style MIT license

Install

Using npm:

npm install geld-cli --global

Usage

$ geld --help

  Convert a number to a currency.

  Usage
    $ geld <input>

  Options
    --currency, -c           Currency symbol, default: €
    --currencyPosition, -cp  Currency position, default: after
    --decimals, -d           Number of decimals (precision), default: 2
    --decimalSeparator, -ds  Decimal separator, default: ,
    --orderSeparator, -os    Order separator, default .
    --zeroDecimals, -z       Zero decimals character
    --space, -s              Space between value and currency symbol

  Example
    $ geld 1337.42
    1.337,42 €
$ geld 1337.42
1.337,42 €

Related

  • geld is the API for this module.

License

MIT © Marc Görtz

2.0.0

2 years ago

1.1.0

3 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.0

6 years ago