0.2.0 • Published 4 years ago

currencyfy v0.2.0

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

currencyfy

convert numbers to displayable currency

currencyfy will convert your numbers to currency

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

npm install currencyfy

Or manually download it.

Usage

1. Include currencyfy

Import

import { currencyfy } from 'currencyfy';

Require

const { currencyfy } = require('currencyfy');

2. Currencyfy your number

currencyfy(19.9, '€');

converts to

19,90 €

Custom settings

currencyfy(23, '€', {
  before: true
});

converts to

€ 23,-
parametervaluedefault
beforebooleanfalse
gapbooleantrue
showzerobooleanfalse
spacerstring,
0.2.0

4 years ago

0.1.0

6 years ago

0.0.9

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago