1.0.0 • Published 2 years ago

@master_teacher/formatamount v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

0.0.1

2 years ago