{"id":45447369,"url":"https://github.com/bachors/nik_parse.js","last_synced_at":"2026-02-22T04:04:55.212Z","repository":{"id":40989933,"uuid":"140662701","full_name":"bachors/nik_parse.js","owner":"bachors","description":"Parse Nomor Induk Kependudukan (NIK) KTP Menggunakan Javascript","archived":false,"fork":false,"pushed_at":"2025-06-29T15:27:26.000Z","size":440,"stargazers_count":307,"open_issues_count":9,"forks_count":143,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-01T11:53:37.699Z","etag":null,"topics":["ktp","nik"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nik-parse","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bachors.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-12T04:54:39.000Z","updated_at":"2025-09-30T04:04:54.000Z","dependencies_parsed_at":"2025-05-19T22:38:30.002Z","dependency_job_id":"ee80327d-e733-44a8-87e5-3573872b2427","html_url":"https://github.com/bachors/nik_parse.js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bachors/nik_parse.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachors%2Fnik_parse.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachors%2Fnik_parse.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachors%2Fnik_parse.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachors%2Fnik_parse.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bachors","download_url":"https://codeload.github.com/bachors/nik_parse.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachors%2Fnik_parse.js/sbom","scorecard":{"id":222516,"data":{"date":"2025-08-11","repo":{"name":"github.com/bachors/nik_parse.js","commit":"e89bf9a04d41f1768c209acdee7174f894f5a22e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T02:55:46.749Z","repository_id":40989933,"created_at":"2025-08-17T02:55:46.750Z","updated_at":"2025-08-17T02:55:46.750Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29704420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T03:17:42.375Z","status":"ssl_error","status_checked_at":"2026-02-22T03:17:31.622Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ktp","nik"],"created_at":"2026-02-22T04:04:55.138Z","updated_at":"2026-02-22T04:04:55.206Z","avatar_url":"https://github.com/bachors.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Parse \u0026 Validasi Nomor Induk Kependudukan (NIK) KTP Menggunakan Javascript.\n\n\u003ch3\u003e- \u003ca href=\"#nik_parsejs\"\u003enik_parse.js\u003c/a\u003e\u003c/h3\u003e\n\u003ch3\u003e- \u003ca href=\"#nik-parse-cli\"\u003enik-parse cli\u003c/a\u003e\u003c/h3\u003e\n\u003ch3\u003e- \u003ca href=\"#nik_parserts\"\u003enik_parser.ts\u003c/a\u003e\u003c/h3\u003e\n\n---------------------------------------------------------------\n\nRumus\n\n\u003cimg src=\"kodenik.jpg\"/\u003e\n\n# \u003ca href=\"https://github.com/bachors/nik_parse.js/tree/master/src\"\u003enik_parse.js\u003c/a\u003e\nSample\n```html\n\u003cscript type=\"text/javascript\" src=\"src/nik_parse.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n\tconst nik = \"3204110609970001\";\n\tnikParse(nik, function(result) {\n\t\tconsole.log(result); // object\n\t});\t\n\u003c/script\u003e\n```\n\nResult\n```json\n{\n  \"status\": \"success\",\n  \"pesan\": \"NIK valid\",\n  \"data\": {\n    \"nik\": \"3204110609970001\",\n    \"kelamin\": \"LAKI-LAKI\",\n    \"lahir\": \"06/09/1997\",\n    \"provinsi\": \"JAWA BARAT\",\n    \"kotakab\": \"KAB. BANDUNG\",\n    \"kecamatan\": \"KATAPANG\",\n    \"uniqcode\": \"0001\",\n    \"tambahan\": {\n      \"kodepos\": \"40921\",\n      \"pasaran\": \"Sabtu Pahing, 6 September 1997\",\n      \"usia\": \"23 Tahun 1 Bulan 27 Hari\",\n      \"ultah\": \"10 Bulan 8 Hari Lagi\",\n      \"zodiak\": \"Virgo\"\n    }\n  }\n}\n```\n\n\u003ch2\u003e\u003ca href=\"http://bachors.com/code/validasi-nik-ktp-menggunakan-javascript-nik_parsejs?embed\"\u003eDEMO\u003c/a\u003e\u003c/h2\u003e\n\n# \u003ca href=\"https://www.npmjs.com/package/nik-parse\"\u003enik-parse cli\u003c/a\u003e\nInstall\n```\nnpm i nik-parse -g\n```\n\nCommand\n```\nnik-parse --nik 3204110609970001\n```\nAlias\n```\nnik-parse -n 3204110609970001\n```\n\u003cimg src=\"cli.jpg\" width=\"70%\"/\u003e\n\n# \u003ca href=\"https://github.com/mul14/nik_parser.ts?fbclid=IwAR0yu4Vadmdi13Z9rVNyiSIuZuybq2bD1THGNTQqZMQNanYvjsCVN9HldR0\"\u003enik_parser.ts\u003c/a\u003e\nNIK Parser in TypeScript by @mul14.\n\n# note\nData yang dihasilkan hanya hasil menterjemahkan tiap digit NIK sehingga data yang dihasilkan adalah tempat pertamakali NIK dibuat/tempat lahir (bukan tempat domisili pemilik NIK secara uptodate).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachors%2Fnik_parse.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbachors%2Fnik_parse.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachors%2Fnik_parse.js/lists"}