{"id":21586072,"url":"https://github.com/magiclen/ts-tw-id-num","last_synced_at":"2026-01-25T08:32:45.777Z","repository":{"id":62314429,"uuid":"559567654","full_name":"magiclen/ts-tw-id-num","owner":"magiclen","description":"Check or generate Taiwan ID numbers. 檢查或是產生中華民國國民身分證統一編號(即身份證字號，而非營業人統一編號)，支援新式外來人口統一證號。也特別支援舊式外來人口統一證號的檢查。","archived":false,"fork":false,"pushed_at":"2024-10-22T03:32:00.000Z","size":246,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T17:56:12.915Z","etag":null,"topics":["taiwan","tw-id-num","typescript"],"latest_commit_sha":null,"homepage":"","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/magiclen.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":"2022-10-30T14:19:54.000Z","updated_at":"2025-03-01T20:36:53.000Z","dependencies_parsed_at":"2024-10-22T22:33:54.257Z","dependency_job_id":null,"html_url":"https://github.com/magiclen/ts-tw-id-num","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"dfe030ae9c190843719c50fdbf95bbc7d422b8d2"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/magiclen/ts-tw-id-num","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fts-tw-id-num","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fts-tw-id-num/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fts-tw-id-num/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fts-tw-id-num/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/ts-tw-id-num/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fts-tw-id-num/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28749361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T08:31:04.260Z","status":"ssl_error","status_checked_at":"2026-01-25T08:30:28.859Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["taiwan","tw-id-num","typescript"],"created_at":"2024-11-24T15:12:34.822Z","updated_at":"2026-01-25T08:32:45.759Z","avatar_url":"https://github.com/magiclen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tw-id-num\n==========\n\n[![CI](https://github.com/magiclen/ts-tw-id-num/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/ts-tw-id-num/actions/workflows/ci.yml)\n\nCheck or generate Taiwan ID numbers.\n\n檢查或是產生中華民國**國民身分證統一編號**(即**身份證字號**，而非營業人統一編號)，支援**新式外來人口統一證號**。也特別支援舊式外來人口統一證號的檢查。\n\n## Usage\n\n```typescript\nimport { Mode, check, generate, checkIncludingOldResidentID } from \"tw-id-num\";\n\nconst id = generate(Mode.National); // e.g. \"A123456789\"\n\nconsole.log(check(id)); // true\n\nconsole.log(checkIncludingOldResidentID(\"HD12345678\")); // true\n```\n\n## Usage for Browsers\n\n[Source](demo.html)\n\n[Demo Page](https://rawcdn.githack.com/magiclen/ts-tw-id-num/master/demo.html)\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fts-tw-id-num","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fts-tw-id-num","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fts-tw-id-num/lists"}