Skip to content

simon446/num-format-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example usage:

// All settings are optional
let format = require('num-format-currency')({
  suffix: ' USD',
  prefix: '$',
  decimalSeparator: '.',
  decimals: 2,
  groupSeparator: ','
});

format(123456.78910) // => $123,456.78 USD

About

Format numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published