Nik Parse

Javascript

Parse Nomor Induk Kependudukan (NIK) KTP Menggunakan Javascript.

Sample

<script type="text/javascript" src="js/nik_parse.js"></script>
<script>

    const nik = "3204110609970004";
    
    // parse
    const result = nikParse(nik);
    
    // object
    console.log(JSON.stringify(result, null, 2));
    
</script>

Result

{
  "nik": "3204110609970004",
  "wilayah": {
    "provinsi": "JAWA BARAT",
    "kotakab": "KAB. BANDUNG",
    "kecamatan": "KATAPANG"
  },
  "kelamin": "L",
  "lahir": {
    "tanggal": "06",
    "bulan": "09",
    "tahun": "1997"
  },
  "uniqcode": "0004"
}

keyboard_arrow_up