Chinese Indentity Card Utilities
This package provides utilities to validate ID number, to extract detailed ID information, to upgrade ID number from 15-digit to 18-digit, to generate fake ID number, and some related functions for HongKong/Macau/Taiwan ID.
Utilities for Hong Kong Identity Card
Utilities for Macau Identity Card
Region query utilities(only includes mainland)
Utilities for Taiwan Identity Card
Options which can be used to configure how a fake ID number is generated.
An object representation of the Chinese ID.
Custom error type.
The type of demographic genders
Returns the Chinese Era by the given year, the given year should not be less than 1000.
Returns the Chinese Zodiac animal by the given year, the given year should not be less than 1000.
Returns the constellation by the given month and day.
Generates a new fake ID number.
Generates a random fake ID number.
Generates a random fake ID number using the given options.
Upgrades a Chinese ID number from 15-digit to 18-digit.
Validates a Chinese ID number(only supports 15/18-digit).