china-id-card
v1.2.1
Published
China citizen identification number
Downloads
31
Readme
china-id-card - 中国公民身份证验证工具
Usage
ES6 Modules
import IDCard from 'china-id-card';
console.log(IDCard('xxxxxxx').isVerified);
CommonJS
const IDCard = require('china-id-card');
console.log(IDCard.default('xxxxxxx').isVerified);
AMD
require(['path/to/amd.file.js'], function(IDCard) {
console.log(IDCard.default('xxxxxxx').isVerified);
});
License
Copyright © 2017-present. This source code is licensed under the MIT license found in the LICENSE file.
Made by Tony (blog)