A simple nodejs package to fetch details of a given NIN provided.
- Bundled with tests and features that ensure a successful fetch. @unofficial
npm i --save nidjs import { Nidjs } from "nidjs";
const nida = new Nidjs()
nida.loadDetails(xxxxxxxxxxxxxxxxxxx).then( data => {
console.log(data);
})replace the string "xxxxxxxxxxxxxxxxxxx" with a NIN.
npm i --save nidnodeconst { Nid } = require("nidnode");
const sample_id = "xxxxxxxxxxxxxxxxxxx";
const nid = new Nid();
nid.loadDetails(sample_id).then(details => {
console.log(details); // an object of nin details
}).catch(err => console.log(err))
-
Follow me jackkweyunga
I learnt some important things from Kalebu
MIT