thaiid
v1.1.0 thai id thai id nationality nationality id validation validator personal id PID and 5 more...
thaiID
ตรวจสอบ และ สุ่ม หมายเลขบัตรประชนชน
ติดตั้ง
// ติดตั้งด้วย CommonJS
npm install thaiid
const thaiId = require('thaiid')
// ติดตั้งด้วย githack
<script src="https://raw.githack.com/jojoee/thaiid/master/src/index.js"></script>
// ติดตั้งด้วย ES6
npm install thaiid
import * as thaiId from 'thaiid'
ตัวอย่างการใช้งาน
thaiId.random() // "3629525599913"
thaiId.random() // "9065089544709"
thaiId.verify('1915197333804') // true
thaiId.verify('1201131963762') // false
ฟีเจอร์
- Compatible with all browsers
- Node.js version support: 6-12
- 0 Dependencies
- Unit test
- Browser compatibility test
- Support negative number
- Other programming languages version
อ้างอิง
npm i [email protected]
Metadata
- MIT
- Whatever
- Nathachai Thongniran
- released 10/4/2021