{"id":30878527,"url":"https://github.com/rematocorp/personal-code-to-birthday","last_synced_at":"2026-04-18T14:12:56.029Z","repository":{"id":259215075,"uuid":"877270689","full_name":"rematocorp/personal-code-to-birthday","owner":"rematocorp","description":"Converts personal identification codes from various countries into birthdate","archived":false,"fork":false,"pushed_at":"2026-04-12T12:23:25.000Z","size":423,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-12T14:11:48.604Z","etag":null,"topics":["birthday","personal-code"],"latest_commit_sha":null,"homepage":"https://rematocorp.github.io/personal-code-to-birthday/","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/rematocorp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2024-10-23T11:32:47.000Z","updated_at":"2026-04-12T12:22:26.000Z","dependencies_parsed_at":"2025-05-12T12:21:34.427Z","dependency_job_id":"72394ce8-6730-4f5c-bf40-b286cfb1abff","html_url":"https://github.com/rematocorp/personal-code-to-birthday","commit_stats":null,"previous_names":["rematocorp/personal-code-to-birthday"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rematocorp/personal-code-to-birthday","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rematocorp%2Fpersonal-code-to-birthday","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rematocorp%2Fpersonal-code-to-birthday/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rematocorp%2Fpersonal-code-to-birthday/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rematocorp%2Fpersonal-code-to-birthday/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rematocorp","download_url":"https://codeload.github.com/rematocorp/personal-code-to-birthday/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rematocorp%2Fpersonal-code-to-birthday/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31971593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["birthday","personal-code"],"created_at":"2025-09-08T05:11:24.602Z","updated_at":"2026-04-18T14:12:56.013Z","avatar_url":"https://github.com/rematocorp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Personal Code to Birthday\n\n[![NPM Version](https://img.shields.io/npm/v/%40remato%2Fpersonal-code-to-birthday)](https://www.npmjs.com/package/@remato/personal-code-to-birthday)\n[![Build](https://img.shields.io/github/actions/workflow/status/rematocorp/personal-code-to-birthday/ci.yml)](https://github.com/rematocorp/personal-code-to-birthday/actions/workflows/ci.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/rematocorp/personal-code-to-birthday?token=NDT35FM2LG\u0026style=flat)](https://codecov.io/gh/rematocorp/personal-code-to-birthday)\n\nConverts personal identification codes from various countries into birthdate.\n\n**[Try it out](https://rematocorp.github.io/personal-code-to-birthday/)**\n\n### Features\n\n- **Built-in Validation**: Confirms personal code validity using checksum verification before returning a date.\n- **Country-Agnostic**: Automatically identifies and processes the country format, requiring no additional parameters.\n- **Lightweight**: Designed for easy integration into any project with no extra dependencies.\n\n### Limitations\n\n- Only supports personal codes issued from 1900 to the present. Future-dated codes are not currently supported.\n\n### Installation\n\n```bash\nnpm install @remato/personal-code-to-birthday\n```\n\n### Usage\n\n```ts\nconst birthday = personalCodeToBirthday('39309262855')\n\nconsole.log(birthday) // outputs { day: 26, month: 9, year: 1993 }\n```\n\n### Countries supported\n\n1. 🇺🇦 Ukraine\n2. 🇪🇪 Estonia\n3. 🇱🇻 Latvia\n4. 🇱🇹 Lithuania\n5. 🇵🇱 Poland\n6. 🇫🇮 Finland\n7. 🇸🇪 Sweden\n8. 🇳🇴 Norway\n9. 🇩🇰 Denmark\n10. 🇷🇴 Romania\n\nNeed support for a new country or have feedback? [Create an issue.](https://github.com/rematocorp/personal-code-to-birthday/issues/new)\n\n### Random facts\n\n1. In Ukraine, the first five digits of the code indicate birthdate as days since January 1, 1900\n2. Lithuania and Estonia use a nearly identical personal code system.\n3. Estonia's personal code used to include hospital where the person was born.\n4. Denmark dropped the check digit in 2007 due to running out of available numbers.\n5. Latvia removed the birthdate component from their new personal codes starting in 2017.\n6. In Sweden, individuals who turn 100 receive a new personal code, where “-” is replaced by “+”.\n7. Norway plans to remove gender and century indicators from personal codes in 2032.\n8. Finland’s personal codes include both numbers and letters for the checksum.\n9. Romania’s personal code includes a county indicator.\n10. Poland’s system differentiates centuries by altering the month digits.\n\n### Authors\n\nCreated by the [Remato team](https://remato.com) to auto-complete birthdate entries based on the construction worker’s personal ID input (country unknown).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frematocorp%2Fpersonal-code-to-birthday","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frematocorp%2Fpersonal-code-to-birthday","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frematocorp%2Fpersonal-code-to-birthday/lists"}