{"id":18709171,"url":"https://github.com/jojoee/thaiid","last_synced_at":"2025-04-12T10:35:06.058Z","repository":{"id":91700982,"uuid":"263228091","full_name":"jojoee/thaiid","owner":"jojoee","description":"Verify and random Thai Nationality ID","archived":false,"fork":false,"pushed_at":"2022-06-21T10:12:58.000Z","size":27,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T05:51:10.040Z","etag":null,"topics":["random","thai","thai-id","thailand","validator","verify"],"latest_commit_sha":null,"homepage":"https://jojoee.github.io/thaiid/","language":"JavaScript","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/jojoee.png","metadata":{"files":{"readme":"README-en.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":"2020-05-12T04:01:36.000Z","updated_at":"2023-08-03T06:38:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"240879e1-a725-4c90-b439-0dd98e32856e","html_url":"https://github.com/jojoee/thaiid","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"3f930126c43fbb609e56a1f1b33c8f1b0e25dece"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fthaiid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fthaiid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fthaiid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fthaiid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/thaiid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553858,"owners_count":21123536,"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":["random","thai","thai-id","thailand","validator","verify"],"created_at":"2024-11-07T12:26:36.354Z","updated_at":"2025-04-12T10:35:06.047Z","avatar_url":"https://github.com/jojoee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thaiID\n\n[![Codecov](https://img.shields.io/codecov/c/github/jojoee/thaiid.svg)](https://codecov.io/github/jojoee/thaiid)\n[![Version - npm](https://img.shields.io/npm/v/thaiid.svg)](https://www.npmjs.com/package/thaiid)\n[![License - npm](https://img.shields.io/npm/l/thaiid.svg)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![Greenkeeper badge](https://badges.greenkeeper.io/jojoee/thaiid.svg)](https://greenkeeper.io/)\n![continuous integration](https://github.com/jojoee/thaiid/workflows/continuous%20integration/badge.svg?branch=master)\n![release](https://github.com/jojoee/thaiid/workflows/release/badge.svg?branch=master)\n![runnable](https://github.com/jojoee/thaiid/workflows/runnable/badge.svg?branch=master)\n![runnable old node](https://github.com/jojoee/thaiid/workflows/runnable%20old%20node/badge.svg?branch=master)\n\nLanguage: [ไทย](https://github.com/jojoee/thaiid/blob/master/README.md), [English](https://github.com/jojoee/thaiid/blob/master/README-en.md)\n\nFastest Thai Nationality ID verify and random\n\n## Installation\n\n```\n// CommonJS\nnpm install thaiid\nconst thaiId = require('thaiid')\n\n// githack\n\u003cscript src=\"https://raw.githack.com/jojoee/thaiid/master/src/index.js\"\u003e\u003c/script\u003e\n\n// ES6\nnpm install thaiid\nimport * as thaiId from 'thaiid'\n```\n\n## Example usage\n\n```javascript\nthaiId.random() // \"3629525599913\"\nthaiId.random() // \"9065089544709\"\n\nthaiId.verify('1915197333804') // true\nthaiId.verify('1201131963762') // false\n```\n\n## Note\n- [x] Compatible with all browsers\n- [x] Node.js version support: 6+\n- [x] 0 Dependencies\n- [x] Unit test\n- [ ] Browser compatibility test\n- [ ] Support negative number\n- [ ] Other programming languages version\n\n## Reference\n- [ปริศนาของเลขบัตรประชาชน13 หลัก](https://www.youtube.com/watch?v=tSlNbe_ss58)\n- [เลขประจำตัวประชาชนไทย](https://th.wikipedia.org/wiki/เลขประจำตัวประชาชนไทย)\n- [เลข 13 หลักในบัตรประชาชนสำคัญฉันใด](https://www.egov.go.th/th/content/817/78/)\n- [ไขปริศนาเลขบัตรประชาชนไทย 13 หลัก](https://www.moe.go.th/ไขปริศนาเลขบัตรประชาชน)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fthaiid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fthaiid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fthaiid/lists"}