{"id":42510573,"url":"https://github.com/ripper2hl/curp","last_synced_at":"2026-01-28T14:11:03.013Z","repository":{"id":37265762,"uuid":"236292625","full_name":"ripper2hl/curp","owner":"ripper2hl","description":"Genera y valida el CURP (Clave Única de Registro de Población) mexicano.","archived":false,"fork":false,"pushed_at":"2025-11-17T21:13:26.000Z","size":3594,"stargazers_count":32,"open_issues_count":2,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-28T16:49:47.853Z","etag":null,"topics":["angular","curp","mexico"],"latest_commit_sha":null,"homepage":"http://curp.israel-perales.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ripper2hl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ripper2hl","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2020-01-26T09:45:11.000Z","updated_at":"2025-12-11T05:44:30.000Z","dependencies_parsed_at":"2023-02-03T14:00:30.625Z","dependency_job_id":"b275cfb8-c072-44dd-a211-8814fbe8f196","html_url":"https://github.com/ripper2hl/curp","commit_stats":{"total_commits":75,"total_committers":7,"mean_commits":"10.714285714285714","dds":0.24,"last_synced_commit":"e2b234a089919d6d4e493779785c569617e27619"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ripper2hl/curp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripper2hl%2Fcurp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripper2hl%2Fcurp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripper2hl%2Fcurp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripper2hl%2Fcurp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ripper2hl","download_url":"https://codeload.github.com/ripper2hl/curp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripper2hl%2Fcurp/sbom","scorecard":{"id":777070,"data":{"date":"2025-08-11","repo":{"name":"github.com/ripper2hl/curp","commit":"e5bd3c5e2d3dd8cc8c28a824c4955b6ca97a6286"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 2/19 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/ripper2hl/curp/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/ripper2hl/curp/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/ripper2hl/curp/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ripper2hl/curp/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ripper2hl/curp/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/ripper2hl/curp/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/ripper2hl/curp/npm-publish.yml/master?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:1: pin your Docker image by updating ubuntu:21.04 to ubuntu:21.04@sha256:ba394fabd516b39ccf8597ec656a9ddd7d0a2688ed8cb373ca7ac9b6fe67848f","Warn: downloadThenRun not pinned by hash: .devcontainer/setup.sh:17","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:31","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned","Info:   2 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":2,"reason":"SAST tool is not run on all commits -- score normalized to 2","details":["Warn: 4 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T03:53:13.792Z","repository_id":37265762,"created_at":"2025-08-23T03:53:13.792Z","updated_at":"2025-08-23T03:53:13.792Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","curp","mexico"],"created_at":"2026-01-28T14:11:02.248Z","updated_at":"2026-01-28T14:11:03.008Z","avatar_url":"https://github.com/ripper2hl.png","language":"JavaScript","readme":"# curp [![NPM version][npm-image]][npm-url] [![Coverage percentage][coveralls-image]][coveralls-url] [![Build status](https://github.com/ripper2hl/curp/actions/workflows/main.yml/badge.svg)](https://github.com/ripper2hl/curp/actions/workflows/main.yml)\n\n[![](https://data.jsdelivr.com/v1/package/npm/curp/badge?style=rounded)](https://www.jsdelivr.com/package/npm/curp)\n\n[![Join the chat at https://gitter.im/curpjs/community](https://badges.gitter.im/curpjs/community.svg)](https://gitter.im/curpjs/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nGenera y valida el CURP (Clave Única de Registro de Población) mexicano.\n\nCompatible con Node, Angular y Javascript solo.\n\n## Instalación\n\n### npm\n```sh\n$ npm install --save curp\n```\n\n### yarn\n```sh\n$ yarn add curp\n```\n\n### CDN\n* jsdelivr [https://cdn.jsdelivr.net/npm/curp/lib/index.js](https://cdn.jsdelivr.net/npm/curp@1.2.1/lib/index.js)\n* unpkg [https://unpkg.com/curp/lib/index.js](https://unpkg.com/curp@1.2.1/lib/index.js)\n\n\n## Uso:\n\n### Javascript\n```html\n\u003cscript type=\"text/javascript\" src=\".../node_modules/curp/lib/index.js\"\u003e\u003c/script\u003e\n```\n#### Validar\n```js\nconsole.log(curp.validar('LOOA531113HTCPBN07')); //true\n```\n#### Generar\n```js\nlet persona = curp.getPersona();\npersona.nombre = 'Andrés Manuel';\npersona.apellidoPaterno = 'López';\npersona.apellidoMaterno = 'Obrador';\npersona.genero = curp.GENERO.MASCULINO;\npersona.fechaNacimiento = '13-11-1953';\npersona.estado = curp.ESTADO.TABASCO;\nconsole.log(curp.generar(persona)) //LOOA531113HTCPBN07\n```\n\n### Nodejs.\n\n#### Validar\n\n```js\nconst curp = require('curp');\nconsole.log( curp.validar('LOOA531113HTCPBN07') ); //true\n```\n#### Generar\n\n```js\nconst curp = require('curp');\nlet persona = curp.getPersona();\npersona.nombre = 'Andrés Manuel';\npersona.apellidoPaterno = 'López';\npersona.apellidoMaterno = 'Obrador';\npersona.genero = curp.GENERO.MASCULINO;\npersona.fechaNacimiento = '13-11-1953';\npersona.estado = curp.ESTADO.TABASCO;\nconsole.log( curp.generar(persona) ); //LOOA531113HTCPBN07\n```\n\n### Angular.\n\n#### Generar y validar\n\n```js\nimport { Component } from '@angular/core';\nimport curp from 'curp';\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n  title = testCurp();\n}\n\n\nfunction testCurp() {\n  let persona = curp.getPersona();\n  persona.nombre = 'Andrés Manuel';\n  persona.apellidoPaterno = 'López';\n  persona.apellidoMaterno = 'Obrador';\n  persona.genero = curp.GENERO.MASCULINO;\n  persona.fechaNacimiento = '13-11-1953';\n  persona.estado = curp.ESTADO.TABASCO;\n  console.log( curp.generar(persona) );\n  return curp.generar(persona);\n}\n\nfunction validarCurp(curpString) {\n  return curp.validar(curpString);\n}\n```\n\n### Uso de Estados y Géneros para Formularios\n\n#### Obtener lista de estados\n```js\nconst estados = curp.getEstados();\n// Retorna un array de objetos { label, value }\n// Ejemplo:\n// [\n//   { label: \"Aguascalientes\", value: \"AS\" },\n//   { label: \"Baja California\", value: \"BC\" },\n//   ...\n// ]\n```\n\n#### Obtener lista de géneros\n```js\nconst generos = curp.getGeneros();\n// Retorna un array de objetos { label, value }\n// Ejemplo:\n// [\n//   { label: \"Femenino\", value: \"M\" },\n//   { label: \"Masculino\", value: \"H\" },\n//   { label: \"No Binario\", value: \"X\" }\n// ]\n```\n\n#### Ejemplo de uso con HTML\n```html\n\u003cselect id=\"estado\"\u003e\n  \u003coption value=\"\"\u003eSeleccione un estado...\u003c/option\u003e\n\u003c/select\u003e\n\n\u003cscript\u003e\n  const select = document.getElementById('estado');\n  curp.getEstados().forEach(({ label, value }) =\u003e {\n    const option = new Option(label, value);\n    select.add(option);\n  });\n\u003c/script\u003e\n```\n\n\n## Licencia\n\nGPL-3.0 © [Israel Perales](https://www.israel-perales.com)\n\n\n[npm-image]: https://badge.fury.io/js/curp.svg\n[npm-url]: https://npmjs.org/package/curp\n[coveralls-image]: https://coveralls.io/repos/ripper2hl/curp/badge.svg\n[coveralls-url]: https://coveralls.io/r/ripper2hl/curp\n\nSe usa código de los siguientes proyectos:\n\n* https://github.com/prestigos/curp.js\n\n* https://github.com/smaniotov/mx-document-generator\n\n* https://github.com/IcaliaLabs/curp-calculation\n","funding_links":["https://github.com/sponsors/ripper2hl"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fripper2hl%2Fcurp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fripper2hl%2Fcurp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fripper2hl%2Fcurp/lists"}