tw-id-num
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

tw-id-num

CI

Check or generate Taiwan ID numbers.

檢查或是產生中華民國國民身分證統一編號(即身份證字號,而非營業人統一編號),支援新式外來人口統一證號。也特別支援舊式外來人口統一證號的檢查。

Usage

import { Mode, check, generate, checkIncludingOldResidentID } from "tw-id-num";

const id = generate(Mode.National); // e.g. "A123456789"

console.log(check(id)); // true

console.log(checkIncludingOldResidentID("HD12345678")); // true

Usage for Browsers

Source

Demo Page

License

MIT

Package Sidebar

Install

npm i tw-id-num

Weekly Downloads

1

Version

0.2.3

License

MIT

Unpacked Size

11.2 kB

Total Files

11

Last publish

Collaborators

  • magiclen