JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 263
  • Score
    100M100P100Q127589F
  • License ISC

thai id card check/generate

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-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