import IDCard from 'china-id-card';
console.log(IDCard('xxxxxxx').isVerified);
const IDCard = require('china-id-card');
console.log(IDCard.default('xxxxxxx').isVerified);
require(['path/to/amd.file.js'], function(IDCard) {
console.log(IDCard.default('xxxxxxx').isVerified);
});
Copyright © 2017-present. This source code is licensed under the MIT license found in the LICENSE file.
Made by Tony (blog)