Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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-12", // WIB calendar date (GMT+7)
//   "unique": "0040"
// }

License

Code licensed under Apache 2.0 License.

About

👀 Take a peek at the details formatted on the NIK.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages