geld-cli

2.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i geld-cli

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

4.58 kB

Total Files

4

Last publish

Collaborators

  • dreamseer