1.0.0 • Published 10 months ago

@master_teacher/formatamount v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

formatAmount

This is a function that accepts a string of digits and return the formatted amount.

Usage

npm i @master_teacher/formatamount

    const formatter = require("@master_teacher/formatamount")

    const amount = '355763673554.94';
    const result = formatter(amount);
    console.log(result) //355,763,673,554.94
1.0.0

10 months ago

0.0.1

10 months ago