Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 439 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 439 Bytes

Thai National ID CARD

Verify , Generate

Installation

$ npm install thai-id-card

Javascipt

const thaiIdCard = require('thai-id-card') // for ES5
or
import thaiIdCard from 'thai-id-card'; // for ES6

Usage

const result = thaiIdCard.verify('1101700207030');
// return true

const id = thaiIdCard.generate();
// return id

Demo

https://repl.it/@tanjaae/thai-id-card