china-id-card

1.2.1 • Public • Published

china-id-card - 中国公民身份证验证工具

Gitpod ready-to-code Build Status tested with jest semantic-release license

Usage

ONLINE DEMO

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)

Package Sidebar

Install

npm i china-id-card

Weekly Downloads

8

Version

1.2.1

License

MIT

Unpacked Size

37 kB

Total Files

18

Last publish

Collaborators

  • tonyc726