The Brazilian government has updated the CNPJ format to include letters, which could break systems using outdated validation methods. A new lightweight npm package called cnpj-universal offers dual-format validation and NestJS integration for both legacy numeric and new alfanumeric CNPJs.
This tool ensures developers can smoothly transition their applications to support the new format without performance overhead or complex manual adjustments.
Read the full article at DEV Community
Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.

![[AINews] The Unreasonable Effectiveness of Closing the Loop](/_next/image?url=https%3A%2F%2Fmedia.nemati.ai%2Fmedia%2Fblog%2Fimages%2Farticles%2F600e22851bc7453b.webp&w=3840&q=75)



