thaiid

Fastest Thai Nationality ID verify and random

Usage no npm install needed!

<script type="module">
  import thaiid from 'https://cdn.skypack.dev/thaiid';
</script>

README

thaiID

Codecov Version - npm License - npm semantic-release Greenkeeper badge continuous integration release runnable runnable old node

ภาษา: ไทย, English

ตรวจสอบ และ สุ่ม หมายเลขบัตรประชนชน

ติดตั้ง

// ติดตั้งด้วย 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

อ้างอิง