{"id":24265824,"url":"https://github.com/gabeidx/cnpj","last_synced_at":"2025-08-02T14:09:35.782Z","repository":{"id":24569775,"uuid":"101932650","full_name":"gabeidx/cnpj","owner":"gabeidx","description":"🇧🇷 Format, validate and generate CNPJ numbers in Node \u0026 Deno","archived":false,"fork":false,"pushed_at":"2024-07-29T21:30:56.000Z","size":505,"stargazers_count":29,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T13:42:26.535Z","etag":null,"topics":["brasil","brazil","cnpj","cnpj-numbers","cnpj-validator","deno","denoland","generation","node","nodejs","validation"],"latest_commit_sha":null,"homepage":"https://jsr.io/@brazil/cnpj","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabeidx.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-30T21:57:41.000Z","updated_at":"2024-10-24T20:17:41.000Z","dependencies_parsed_at":"2024-10-24T02:58:09.155Z","dependency_job_id":"a3545e15-0c2f-4ec8-b6a8-730eb3d1fe01","html_url":"https://github.com/gabeidx/cnpj","commit_stats":{"total_commits":95,"total_committers":3,"mean_commits":"31.666666666666668","dds":"0.21052631578947367","last_synced_commit":"5d64a30621dd253931c7d065ae8484aea6f027ca"},"previous_names":["gabeidx/cnpj","gabrielizaias/cnpj"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/gabeidx/cnpj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabeidx%2Fcnpj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabeidx%2Fcnpj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabeidx%2Fcnpj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabeidx%2Fcnpj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabeidx","download_url":"https://codeload.github.com/gabeidx/cnpj/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabeidx%2Fcnpj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267703454,"owners_count":24130470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brasil","brazil","cnpj","cnpj-numbers","cnpj-validator","deno","denoland","generation","node","nodejs","validation"],"created_at":"2025-01-15T10:19:57.163Z","updated_at":"2025-08-02T14:09:35.754Z","avatar_url":"https://github.com/gabeidx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CNPJ\n\nFormat, validate and generate CNPJ numbers.\n\n## Installation\n\n### Node\n\n```bash\nnpm install cnpj\n```\n\nor, if you are using jsr\n\n```bash\nnpx jsr add @brazil/cnpj\n```\n\n```ts\nimport { validate, format, generate } from 'cnpj';\n```\n\n### Deno\n\n```bash\ndeno add @brazil/cnpj\n```\n\n```ts\nimport { validate, format, generate } from '@brazil/cnpj';\n```\n\n## Usage\n\n```js\n// Validation\nconst valid = validate('38.981.218/0001-47'); // true\n\n// Format\nconst formatted = format(88415345000157) // 88.415.345/0001-57\n\n// Generation\nconst generated = generate(); // randomly generated, valid CNPJ\n```\n\n### License\n\n[MIT License](https://gabrielizaias.mit-license.org) \u0026copy; [Gabriel Silva](https://gabe.id)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabeidx%2Fcnpj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabeidx%2Fcnpj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabeidx%2Fcnpj/lists"}