cn-id-validate
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

cn-id-validator

996.icu LICENSE

18位中国公民身份证号码合法性校验 基于 es6 语法

install

npm install cn-id-validator
const Validator = require('cn-id-validator');
const validator = new Validator('110101196809021004');
const result = validator.valid();
false // if faild
{ address: '北京市东城区', birthday: '1968-09-02', age: 48, gender: 0 } //if success
// gender 0 女,1 男

change log

v0.2.1

v0.2.0

  • 变更许可

v0.1.5

v0.1.3

Install

npm i cn-id-validate

DownloadsWeekly Downloads

1

Version

0.2.1

License

ISC

Unpacked Size

99.8 kB

Total Files

7

Last publish

Collaborators

  • cw.fan