gimmejs-currency

1.2.0 • Public • Published

gimmejs-currency

Build Status Coverage Status Gitter License

Oh, you want a randomly generated currency value? Just say gimme!

Installation

Install gimmejs-currency with one of these package managers.

Source
npm npm install --save gimmejs-currency
yarn yarn add gimmejs-currency

Usage

In Node:

var gimme = require('gimmejs-currency');

gimme.currency('USD');  // $1,584

API

#currency( iso, scale, includeDecimal, decimalScale )

Parameters/Return Data Type Default Value
@param iso string n/a
@param scale number 4
@param includeDecimal boolean false
@param decimalScale number 2
@return string n/a

Examples

gimme.currency('GBP', 8);
'£75,445,668'

gimme.currency('EUR', 6, true);
'€463,322.16'

gimme.currency('USD', 6, true, 4);
'$278,945.9611'

Contributing

Coming soon

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i gimmejs-currency

Weekly Downloads

4

Version

1.2.0

License

MIT

Last publish

Collaborators

  • heyitsjhu