Library to validate, retrive meta info Malaysia Identity Card (MyKad)
npm install malaysia-mykad
import mykad from 'malaysia-mykad'
const mykad = new mykad(891225085673)
console.log(mykad.isValid())
// true
console.log(mykad.getBirthDate())
// 1989-12-25T00:00:00.000Z
console.log(mykad.getBirthPlace())
// { code: 08, name: 'Perak' }
console.log(mykad.getGender())
// 'Male'
console.log(mykad.getMeta())
// { identityCode: 891225085673, birthDate: 1989-12-25T00:00:00.000Z, birthPlace: 'Perak', gender: 'Male' }