yarn add @useblu/utils
or
npm i @useblu/utils
import { normalizeMoney, normalizeCpfOrCnpj } from "@useblu/utils";
console.log(normalizeMoney(150)); // R$ 150,00
console.log(normalizeCpfOrCnpj("93231097037")); // 932.310.970-37
Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of this project! Read below to learn how you can take part of it.
We adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.
To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started.
To release a new version on NPM registry, just bump version on package.json
and merge it into master to automatically publish a new version.
All packages are licensed under the terms of the GPL-3.0 License.