geld-cli
v2.0.0
Published
Convert a number to a currency.
Downloads
3
Readme
geld-cli
Convert a number to a currency.
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