Skip to content

runfan/cn-id-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.1.5

v0.1.3

About

中国公民身份证号码合法性校验

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published