currencyfy

0.2.0 • Public • Published

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,-
parameter value default
before boolean false
gap boolean true
showzero boolean false
spacer string ,

Readme

Keywords

Package Sidebar

Install

npm i currencyfy

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

11.1 kB

Total Files

12

Last publish

Collaborators

  • leifarriens