thaiid
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

ฟีเจอร์

  • [x] Compatible with all browsers
  • [x] Node.js version support: 6-12
  • [x] 0 Dependencies
  • [x] Unit test
  • [ ] Browser compatibility test
  • [ ] Support negative number
  • [ ] Other programming languages version

อ้างอิง

Package Sidebar

Install

npm i thaiid

Weekly Downloads

8

Version

1.1.2

License

MIT

Unpacked Size

16.5 kB

Total Files

7

Last publish

Collaborators

  • jojoee