1.0.3 • Published 3 years ago

nidjs v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

nidjs

A simple nodejs package to fetch details of a given NIN provided.

  • Bundled with tests and features that ensure a successful fetch. @unofficial

...

Usage

Web

Installation

 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.

Usage

node

Installation

 npm i --save nidnode
const { 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))

Contributing

  • support the project by giving it a :star: star

  • Follow me jackkweyunga

  • :fork_and_knife: Fork ( its opensource )

  • Open an issue in case of misbehabiours 👎 or suggesting a new feature.

  • ...

credits

I learnt some important things from Kalebu

Licence

MIT