MCPcopy Index your code
hub / github.com/brazilian-utils/javascript

github.com/brazilian-utils/javascript @2.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.3.0 ↗ · + Follow
217 symbols 657 edges 192 files 2 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Brazilian Utils

Utils library for Brazilian-specific businesses.

📖 Documentation

Build Status Coverage Status Known Vulnerabilities Maintainability Downloads per month License: MIT

Table of Contents

Getting Started

Brazilian Utils is a library focused on solving problems that we face daily in the development of applications for the Brazilian business.

Installation

Using Brazilian Utils is quite simple and you can use it in some ways:

as npm package:

npm install --save @brazilian-utils/brazilian-utils

with yarn package manager:

yarn add @brazilian-utils/brazilian-utils

or <script> tag (global brazilianUtils):

<script src="https://unpkg.com/@brazilian-utils/brazilian-utils/dist/brazilian-utils.cjs.production.min.js"></script>

Usage

To use one of our utilities you just need to import the required function as in the example below:

import { isValidCpf } from "@brazilian-utils/brazilian-utils";

isValidCpf("1232454233345"); // false

You can check a list of utilities by clicking here.

Development

This repository uses Vite+ as the local toolchain.

Requirements:

  • Node.js ^20.19.0 || >=22.12.0
  • vp installed and available in your shell

Common commands:

vp install
vp check
vp test
vp run build

Release notes are published through GitHub Releases.

Contributors

Our "thank you" goes to these wonderful people (emoji key):

Hyan Mandian 💻 📖 🤔 ⚠️ Lucas Veloso 💻 📖 🤔 ⚠️ Andreo Vieira 💻 📖 🤔 🔧 Matheus Almeida 💻 📖 ⚠️ Fernando Rogelin 💻 📖 ⚠️ rodineijf 💻 📖 ⚠️ Emerson Laurentino 💻 📖 ⚠️
Leonardo Dutra 💻 📖 ⚠️ Victor Magalhães 💻 🔧 Amauri Dias 💻 🔧 Felipe F. Diogo 💻 ⚠️ Alan Raso 💻 ⚠️ Felipe Fetter 📖 Rafael Franco 💻 📖
Rafael Pezzetti 💻 ⚠️ 📖 Antonio Roberto Furlaneto 💻 📖 ⚠️ Felipe Nolleto Nascimento 💻 📖 ⚠️ Saulo Joab 📖 Pedro Arantes 💻 📖 ⚠️ Silvio Clécio 💻 📖 ⚠️ Lucas Nascimento 💻
Lincon Kusunoki 💻 📖 ⚠️ Marcelo Cristiano

Extension points exported contracts — how you extend this code

GlobalThis (Interface)
(no doc)
src/_internals/test/globals.d.ts
GenerateChecksumParams (Interface)
(no doc)
src/_internals/generate-checksum/generate-checksum.ts

Core symbols most depended-on inside this repo

isValidIe
called by 136
src/is-valid-ie/is-valid-ie.ts
formatCnpj
called by 79
src/format-cnpj/format-cnpj.ts
formatCurrency
called by 55
src/format-currency/format-currency.ts
formatPis
called by 55
src/format-pis/format-pis.ts
formatBoleto
called by 54
src/format-boleto/format-boleto.ts
sanitizeToDigits
called by 49
src/_internals/sanitize-to-digits/sanitize-to-digits.ts
formatCpf
called by 48
src/format-cpf/format-cpf.ts
isValidBankAccount
called by 40
src/is-valid-bank-account/is-valid-bank-account.ts

Shape

Function 194
Class 14
Method 7
Interface 2

Languages

TypeScript100%

Modules by API surface

src/is-valid-ie/is-valid-ie.ts32 symbols
src/_internals/test/runtime-deno.ts32 symbols
src/get-address-info-by-cep/get-address-info-by-cep.ts16 symbols
src/get-cep-info-by-address/get-cep-info-by-address.ts12 symbols
src/generate-cnpj/generate-cnpj.ts9 symbols
src/is-valid-bank-account/is-valid-bank-account.ts7 symbols
src/is-valid-voter-id/is-valid-voter-id.ts4 symbols
src/is-valid-boleto/is-valid-boleto.ts4 symbols
src/get-municipality/get-municipality.ts4 symbols
src/is-valid-mobile-phone/is-valid-mobile-phone.ts3 symbols
src/is-valid-landline-phone/is-valid-landline-phone.ts3 symbols
src/is-valid-cnpj/is-valid-cnpj.ts3 symbols

For agents

$ claude mcp add javascript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page