gabrielfroes

Validador de CNPJ Alfanumérico em TypeScript

20
9
100% credibility
Found Apr 08, 2026 at 20 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A standalone tool for checking the validity of Brazilian company identification numbers in both the traditional numeric format and the new alphanumeric format planned for 2026.

How It Works

1
🔍 Learn about new company IDs

You hear that Brazil's company registration numbers will soon mix letters and numbers to fit more businesses starting in 2026.

2
💡 Discover the checker tool

You find this simple, one-file tool that verifies both the old number-only IDs and the upcoming letter-mixed ones.

3
📋 Add it to your project

Just copy the single file into your own work, and it's ready with no extra setup needed.

4
🔎 Test a company ID

Put in a company ID with dots, slashes, or even lowercase letters, and it cleans it up and checks if it's real.

5
Confirm it's valid

Get a quick yes or no, plus a safe, cleaned version if it's good to use.

🎉 Future-proof your work

Now your project handles all company IDs perfectly, keeping everything accurate and secure.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 20 to 20 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is novo-cnpj?

This TypeScript library validates Brazil's upcoming alphanumeric CNPJ format from Receita Federal, set to launch in July 2026 for new company registrations. It handles both the legacy 14-digit numeric CNPJs and the new novo cnpj alfanumerico with letters A-Z in the first 12 positions, like "12.ABC.345/01AB-77". Users get dead-simple functions to check validity, normalize inputs (stripping masks, case-insensitive), and create type-safe CNPJ strings.

Why is it gaining traction?

Zero dependencies make it a drop-in for any TypeScript project, unlike heavier validators needing builds or extras. Branded types ensure compile-time safety—no more passing raw strings to CNPJ fields—while it auto-handles real-world mess like lowercase letters or punctuation. Devs love the forward-thinking support for novo cnpj 2026 before it hits, with solid tests across Node, Deno, and Bun.

Who should use this?

Brazilian fintech engineers validating company forms, e-commerce backends processing supplier data, or SaaS devs building CRM integrations. Ideal for TypeScript/Node teams needing a lightweight validador cnpj alfanumerico that future-proofs against Receita Federal's changes, without regex hell or custom check-digit math.

Verdict

Grab it if you're in TS and touch Brazilian business data—docs are thorough, tests cover edge cases like invalid check digits. With just 20 stars and 1.0% credibility, it's early-stage but reliable for non-prod; watch for npm adoption as novo cnpj rollout nears.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.