{"size": 533, "ext": "js", "max_stars_repo_path": "src/helpers/formatCurrency.js", "max_stars_repo_name": "onathanmiranda/cofrinho", "max_stars_repo_stars_event_min_datetime": "2021-03-17T04:31:33.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-17T04:31:33.000Z", "max_issues_repo_path": "src/helpers/formatCurrency.js", "max_issues_repo_name": "onathanmiranda/cofrinho", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/helpers/formatCurrency.js", "max_forks_repo_name": "onathanmiranda/cofrinho", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.5333333333, "max_line_length": 108, "alphanum_fraction": 0.6435272045}
export default function CurrencyBLR( value ){

    var formatter = new Intl.NumberFormat('pt-BR', {
        style: 'currency',
        currency: 'BRL'
      
        // These options are needed to round to whole numbers if that's what you want.
        //minimumFractionDigits: 0, // (this suffices for whole numbers, but will print 2500.10 as $2,500.1)
        //maximumFractionDigits: 0, // (causes 2500.99 to be printed as $2,501)
    })
    
    const FormatCurrency = formatter.format

    return FormatCurrency( value / 100 )
}