{"id":21586099,"url":"https://github.com/magiclen/tw-nhi-icc","last_synced_at":"2025-03-18T09:15:46.286Z","repository":{"id":207906690,"uuid":"720393020","full_name":"magiclen/tw-nhi-icc","owner":"magiclen","description":"Read Taiwan NHI cards in JavaScript/TypeScript. 在 JavaScript/TypeScript 中，讀取中華民國健保卡。","archived":false,"fork":false,"pushed_at":"2024-02-12T03:26:06.000Z","size":91,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T15:35:14.202Z","etag":null,"topics":["smart-card","taiwan","tw-nhi-icc","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":"2023-11-18T10:51:26.000Z","updated_at":"2024-11-09T13:27:04.000Z","dependencies_parsed_at":"2024-11-24T18:00:38.155Z","dependency_job_id":null,"html_url":"https://github.com/magiclen/tw-nhi-icc","commit_stats":null,"previous_names":["magiclen/tw-nhi-icc"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Ftw-nhi-icc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Ftw-nhi-icc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Ftw-nhi-icc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Ftw-nhi-icc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/tw-nhi-icc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244189826,"owners_count":20412991,"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":["smart-card","taiwan","tw-nhi-icc","typescript"],"created_at":"2024-11-24T15:12:39.961Z","updated_at":"2025-03-18T09:15:46.266Z","avatar_url":"https://github.com/magiclen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"TW NHI IC Card\n====================\n\n[![CI](https://github.com/magiclen/tw-nhi-icc/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/tw-nhi-icc/actions/workflows/ci.yml)\n\n在 JavaScript/TypeScript 中，讀取中華民國健保卡。\n\nRead Taiwan NHI cards in JavaScript/TypeScript.\n\n## 用法\n\n#### 執行環境\n\n請先取得並在本地端或是某處執行 [TW NHI IC Card Service](https://github.com/magiclen/tw-nhi-icc-service)。\n\n#### 撰寫程式\n\n###### 使用 npm 安裝本套件\n\n```bash\nnpm install \"git+https://github.com/magiclen/tw-nhi-icc.git#semver:^0.1\"\n```\n\n###### 初始化\n\n```typescript\nimport { TWNHIICCService } from \"tw-nhi-icc\";\n\nconst service = new TWNHIICCService();\n```\n\n###### 取得 TW NHI IC Card Service 的版本資訊\n\n```typescript\nconst version = service.getVersion();\n```\n\n###### 取得健保卡清單\n\n```typescript\nconst cards = await service.getCardList();\n```\n\n###### 連接 WebSocket\n\n```typescript\nawait service.openWebSocket();\n\nservice.onWebSocketUpdate = (cards) =\u003e {\n    // ...\n};\n\nservice.closeWebSocket();\n```\n\n## 網頁瀏覽器的用法\n\n[Source](demo.html)\n\n[Demo Page](https://rawcdn.githack.com/magiclen/tw-nhi-icc/master/demo.html)\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Ftw-nhi-icc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Ftw-nhi-icc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Ftw-nhi-icc/lists"}