peeknik
v0.0.4
Published
Take a peek at the NIK details
Downloads
7
Readme
piknik /pik·nik/ verb
Peeknik can be read as "piknik" in Indonesian, which means traveling somewhere outside the city to hav fun with food and so on.
Peeknik in English can mean to peek, and NIK is Nomor Induk Kependudukan, or National Identity Card Number.
Install
Install with your favorite package manager.
npm i peeknik
# or
yarn add peeknik
This will add the latest peeknik release as a module to your project.
Usage
For very easy usage, just call the function, and we'll return an object.
// const peeknik = require('peeknik')
import peeknik from 'peeknik'
// just a random sample!
const nik = '3327081203970040'
// you can use string or number data type
const data = peeknik(nik)
// {
// "valid": true,
// "province": "JAWA TENGAH",
// "region": "KAB. PEMALANG",
// "district": "PEMALANG",
// "gender": "M",
// "dob": 1997-03-11T17:00:00.000Z,
// "unique": "0040"
// }
License
Code licensed under Apache 2.0 License.