1.0.7 • Published 6 years ago

number-to-money v1.0.7

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

number-to-money

Version License

A lightweight and simple plugin to convert number to money format.

Installation

npm install number-to-money

or

yarn add number-to-money

Usage

Javascript

Simply use toMoney function to convert any number to money format. You'll need to add manually the currency. This plugin will add it automatically in future releases.

import toMoney from 'number-to-money';

const number = 3000000.3;
const moneyFormat = toMoney(number);

console.log(moneyFormat);
Output

3,000,000.30

Donations

Donations are greatly appreciated!

BUY ME A COFFEE

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago