javascript
javascript copied to clipboard
Utils library for specific Brazilian businesses
What do you guys think about functions to handle the Brazilian states? something like: - Get all states - Find a specific state where this could be applied? - Select...
Related to #82, is it a good idea to create a method that returns all Brazilian cities? We may create a script that gets all cities from [IBGE API](https://servicodados.ibge.gov.br/api/docs/localidades?versao=1#api-Microrregioes-estadosUFMicrorregioesGet), for...
Hey guys, I'm trying to use the ``getCities`` method but I'm getting: ``Uncaught TypeError: (0 , _brazilianUtils.getCities) is not a function`` error on the console. I installed the lib using...
Hi. It would be nice to allow to validade a phone number by its type, for example: ```js const test = isValidPhone(); // Validates both phone and mobile phone number...
Hi. It would be nice to provide some function like this: ```js capitalize("esponja de aço 60g") // Capitalizes to "Esponja de Aço 60G" capitalize("fulano de tal") // Capitalizes to "Fulano...
The `getCities` function calls `Array.prototype.flat()` that is not available on Node 10. I setup a Github Workflow that runs our tests using Node 10, 12 and 14... the Node 10...
Sometimes banking applications need a way to select a civil registry office when you need to registry something in the B3. The Brazilian government has a CSV with available civil...
Hi. What do you think about to declare those three functions? Something like: ```js function formatCurrency(value: number, precision: number = 2): string; function formatDecimal(value: number, precision: number = 2): string;...