1.1.2 • Published 2 years ago

thaiid v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

อ้างอิง