js-format-money
v1.0.0
Published
Lib to format money
Downloads
54
Readme
js-format-money
Lib to format money
Javascript example:
const moneyFormat = require('js-format-money');
console.log(moneyFormat.formatMoney(5.5))
Output: 5.50
Typescript example:
import { formatMoney } from 'js-format-money'
console.log(formatMoney(5.5)
Output: 5.50
import { formatMoney } from 'js-format-money'
console.log(formatMoney(5.5, ",")
Output: 5,50