1.0.3 • Published 5 years ago

naija-senators v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

naija-senators

A library showing the list of nigerian senators with their contact infos

Installation

npm install naija-senators

Example

// ES6
import {all, findbystate, findbyname} from 'naija-senators';

console.log(all()); //return all the list of senators(state, name, email, phone)
console.log(findbystate("ekiti")) //returns all the list of senators in ekiti(state, name, email, phone)
console.log(findbyname("az")) //returns all the list of senators that matches the string "az"(state, name, email, phone)

Note: ES5 syntax and below is not supported. Add type: module to your package.json file

Structure

[{
state: string;
name: string;
email: string;
phone: string;
}]
functionargumentresponse
.all()noneit returns an array of all senators(name,emails and phone number)
.findbystate(state)stateit returns the list of senators in the given argument
.findbyname(name)nameit returns the list of senators in the argument(list of senators that equals the argument)

Features

list all nigerian senators with their contact infos

Contributing

  • Fork this repositry to your account.
  • Clone the repositry
  • Commit your changes
  • Push to the remote branch: git push origin master
  • Open a pull request.
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago