0.0.6 • Published 6 years ago
sx-verify v0.0.6
sx-verify
Abstract
This is a instrument to verify various of number, such as IDCard、phone number...
Installation
npm install sx-verify --save
Using
As follows:
var sx = require('sx-verify');
/**
@return{
isTrue: false, // The IDCard is correct or incorrect true | false
province: '湖北省', // Where from are you on the basis of IDCard
birthday: '1990-01-01', // The birthday on the basis of IDCard
sex: '男' // The sex on the basis of IDCard '男' | '女'
}
*/
var IDCard = '42***';
sx.idcard(IDCard);
/**
@return true | false
*/
var phoneNumber = '131***';
sx.phone(phoneNumber);
/**
@return true | false
*/
var email = '1100@gmail.com';
sx.email(email);