0.0.6 • Published 6 years ago

sx-verify v0.0.6

Weekly downloads
27
License
-
Repository
github
Last release
6 years ago

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);
0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago