/geld-cli

💶 A CLI for geld, a minimal currency formatter.

Primary LanguageJavaScriptMIT LicenseMIT

geld-cli

Convert a number to a currency.

Test 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