{"id":20184818,"url":"https://github.com/icalialabs/rfc-calculation","last_synced_at":"2025-07-31T18:32:33.766Z","repository":{"id":57363166,"uuid":"85243183","full_name":"IcaliaLabs/rfc-calculation","owner":"IcaliaLabs","description":"A JavaScript dependency for calculating mexican RFC.","archived":false,"fork":false,"pushed_at":"2019-11-28T20:41:36.000Z","size":9,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T06:06:36.917Z","etag":null,"topics":["coffeescript","javascript","npm","rfc"],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/IcaliaLabs.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}},"created_at":"2017-03-16T21:27:48.000Z","updated_at":"2020-07-02T20:22:04.000Z","dependencies_parsed_at":"2022-09-26T16:32:15.976Z","dependency_job_id":null,"html_url":"https://github.com/IcaliaLabs/rfc-calculation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcaliaLabs%2Frfc-calculation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcaliaLabs%2Frfc-calculation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcaliaLabs%2Frfc-calculation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcaliaLabs%2Frfc-calculation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IcaliaLabs","download_url":"https://codeload.github.com/IcaliaLabs/rfc-calculation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"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","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":["coffeescript","javascript","npm","rfc"],"created_at":"2024-11-14T03:09:13.523Z","updated_at":"2025-04-10T06:06:48.412Z","avatar_url":"https://github.com/IcaliaLabs.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Made with Love by Icalia Labs](https://img.shields.io/badge/With%20love%20by-Icalia%20Labs-ff3434.svg)\n\n# rfc-calculation\n\n`rfc-calculation` is a JavaScript dependency for calculating mexican RFC.\n\n## Version\n0.1.0\n\n## Instalation\n\n```console\n npm install rfc-calculation\n```\n\n## Usage\n\nTo calculate a RFC, you'll need to provide the following parameters:\n\n- Name\n- Paternal Lastname\n- Maternal Lastname\n- Birthdate\n\n```\nvar rfc = require('rfc-calculation')\n\nlet name = \"Alejandro\"\nlet pLname = \"Gutierrez\"\nlet mLname = \"Sanchez\"\nlet bDate = \"1990-04-28\"\n\nlet result = new rfc(name, pLname, mLname, bDate)\nconsole.log(result.rfc)\n```\n\nAnd that's it! Just make sure that your date is formatted like so: ```\nYYYY-MM-DD ``` and you'll have your RFC.\n\n## Acknowledgements\nThis code was based on [@banregiolabs](https://github.com/banregiolabs) java's version.\n\n## License\nMIT License\n\nCopyright (c) 2017 Icalia Labs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficalialabs%2Frfc-calculation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficalialabs%2Frfc-calculation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficalialabs%2Frfc-calculation/lists"}