Package with utilities for the convert number to price format
Use the npm to install
npm install @brainylab/numbers-utils
Or use the yarn to install
yarn add @brainylab/numbers-utils
import { priceFormat } from '@brainylab/numbers-utils';
const number = 500;
const priceConverted = priceFormat(number)
console.log(priceConverted)
// return string 'R$ 500,00'