1.0.10 • Published 3 years ago

check-thai-pid v1.0.10

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

check-thai-pid

Check thai personal ID

Installation

npm

npm install --save check-thai-pid

yarn

yarn add check-thai-pid

Usage

Check thai personal ID

const CheckThaiPID = require('check-thai-pid')

const personalID = 9999999999999 //string or number

let outStr = CheckThaiPID(personalID) ? 'Personal ID is correct' : "Personal ID is incorrect"

console.log(outStr)