2.0.1 • Published 7 years ago
identity-card-methods v2.0.1
identity-card-related-methods
Some ID card related methods.
npm install 'identity-card-methods'
var identityCardMethods = require('identity-card-methods')
// transfer IDCardNO's length from 15 to 18
identityCardMethods.IDCardNO15To18(IDCardNO);
// checke IDCardNO is legal.
identityCardMethods.checkeIDCardNO(IDCardNO);
If use ES2015
npm install 'identity-card-methods'
import { checkeIDCardNO, IDCardNO15To18 } from 'identity-card-methods';