{"id":16036507,"url":"https://github.com/ocsoares/class-validator-cpf","last_synced_at":"2025-09-15T20:14:19.830Z","repository":{"id":102313406,"uuid":"608427397","full_name":"ocsoares/class-validator-cpf","owner":"ocsoares","description":"Um decorator customizado para validar CPF usando como base o pacote class-validator","archived":false,"fork":false,"pushed_at":"2023-03-05T17:06:39.000Z","size":47,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-26T12:19:06.325Z","etag":null,"topics":["class-validator","class-validator-cpf","cpf","iscpf","nestjs","nodejs","regex","regular-expression","typescript","validation","validator"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/class-validator-cpf","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ocsoares.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-02T01:47:32.000Z","updated_at":"2024-08-24T14:21:10.000Z","dependencies_parsed_at":"2023-05-29T19:30:18.360Z","dependency_job_id":null,"html_url":"https://github.com/ocsoares/class-validator-cpf","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"5f4005cc21d5bf061a1dc4801131b8d92cc2f517"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ocsoares/class-validator-cpf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocsoares%2Fclass-validator-cpf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocsoares%2Fclass-validator-cpf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocsoares%2Fclass-validator-cpf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocsoares%2Fclass-validator-cpf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocsoares","download_url":"https://codeload.github.com/ocsoares/class-validator-cpf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocsoares%2Fclass-validator-cpf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275313512,"owners_count":25442703,"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-09-15T02:00:09.272Z","response_time":75,"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":["class-validator","class-validator-cpf","cpf","iscpf","nestjs","nodejs","regex","regular-expression","typescript","validation","validator"],"created_at":"2024-10-08T22:05:07.509Z","updated_at":"2025-09-15T20:14:19.779Z","avatar_url":"https://github.com/ocsoares.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# class-validator-cpf\n\nValida strings de CPF no formato XXX.XXX.XXX-XX ou XXXXXXXXXXX, usando como base o pacote class-validator\n\n[![npm][npm-image]][npm-url]\n![GitHub top language](https://img.shields.io/github/languages/top/ocsoares/class-validator-cpf)\n![GitHub last commit](https://img.shields.io/github/last-commit/ocsoares/class-validator-cpf)\n\n[npm-image]: https://img.shields.io/npm/v/class-validator-cpf.svg?style=flat\n[npm-url]: https://npmjs.org/package/class-validator-cpf\n\n### Requer:\n\nNode `^8.0.0`.\n\n### Instalação:\n\n```\nnpm i class-validator-cpf\n```\n\n### Uso:\n\nImporte o decorator da biblioteca na propriedade da sua classe responsável por validar o CPF\n\n```ts\nimport { IsCPF } from \"class-validator-cpf\";\n\nclass User {\n  @IsCPF()\n  cpf: string;\n}\n```\n\n:warning: **AVISO**: Todas as opções do class-validator estão disponíveis nessa biblioteca, exemplo:\n\n```ts\nimport { IsCPF } from \"class-validator-cpf\";\n\nclass User {\n  @IsCPF({ message: \"Mudando a mensagem\" })\n  cpf: string;\n}\n```\n\n### Testes\n\n```shell\nnpm test\n```\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2023-present\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focsoares%2Fclass-validator-cpf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focsoares%2Fclass-validator-cpf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focsoares%2Fclass-validator-cpf/lists"}