id-card-helper is a plugin for check ID or generate random ID. Currently it support Taiwan ID.
Features
- Singopore
- Hong Kong
Prepare
- yarn
- node
Installing id-card-helper
yarn add id-card-helper
Using id-card-helper
; /* Create a id Checker */const taiwanCard = 'Taiwan'; /* Checking ID is valid */taiwanCard; // => true /* Generate random ID */taiwanCard; // => 'A123456789' /* Generate Taipei Area ID */taiwanCard; // => 'A123456789' /* Generate female ID */taiwanCard; // => 'X280697928To' /* Generate 5 ID */taiwanCard;// => ['L189927266', 'Z156906740', 'D233324744', 'C121315321', 'R254875676'] /* Or you can combine parameters */taiwanCard; // => ['A292888280', 'A276501402', 'A28447038']