Package Exports
- thai-id-card
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (thai-id-card) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Thai National ID CARD
Verify , Generate
Installation
$ npm install thai-id-cardJavascipt
const thaiIdCard = require('thai-id-card') // for ES5
or
import thaiIdCard from 'thai-id-card'; // for ES6Usage
const result = thaiIdCard.verify(‘1101700207030’);
// return true
const id = thaiIdCard.generate();
// return idDemo
https://repl.it/@tanjaae/thai-id-card