chidvalidation
v1.0.3
Published
Chinese ID number validation package
Downloads
5
Readme
How to use
const CHIDValidation = require('chidvalidation');
try {
const addresses = undefined; // default: CHIDValidation.addresses;
const option = undefined;// default: CHIDValidation.option;
const ID = '210421195405030415' // must be string
const rst = CHIDValidation(ID, option, addresses);
if (rst.status == true) {
// success
} else {
console.log(rst.message)
}
} catch (e) {
console.log(e.message)
}