taiwan-id
This package provides both a library and a command-line tool (CLI) for working with identification numbers issued to residents of Taiwan, as well as the other territories of the Republic of China (ROC), including Kinmen, Matsu, and Penghu.
Identification numbers are issued under two systems — National Identification Cards (國民身分證) and Resident Certificates (居留證) — with numbers assigned under each system occupying disjoint parts of the same number space.
Each identification number consists of a single uppercase letter followed by nine decimal digits, with the final digit serving as a checksum calculated according to a standard algorithm.
Example: A123456789
See md or the Taiwan.ID module to get started.
For more details, see: