Skip to content

wandersoncs/number-locale-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

number-locale-string

Install

npm install --save number-locale-string

Using

const numberLocal = require('number-locale-string');

let value = 1200.00;

// valueString = '1.200'
let valueString = numberLocal.toLocaleString(value, 'pt-BR');

// currencyString = R$1.200,00
let currencyString = numberLocal.toLocaleString(value, 'pt-BR', { style: 'currency', currency: 'brl' });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •