https://github.com/unicodeveloper/naija-statecapital
:earth_africa: :package: A simple utility library that lists and manipulate states, capitals and cities in Nigeria :ng:
https://github.com/unicodeveloper/naija-statecapital
Last synced: 8 months ago
JSON representation
:earth_africa: :package: A simple utility library that lists and manipulate states, capitals and cities in Nigeria :ng:
- Host: GitHub
- URL: https://github.com/unicodeveloper/naija-statecapital
- Owner: unicodeveloper
- Created: 2015-01-08T08:26:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-30T14:23:13.000Z (over 10 years ago)
- Last Synced: 2024-04-24T00:42:18.956Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 157 KB
- Stars: 6
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
[](https://npmjs.org/package/naija-statecapital)
[](https://travis-ci.org/busayo/naija-statecapital)
[](https://coveralls.io/github/busayo/naija-statecapital?branch=master)


# naija-statecapital
A simple utility library that lists and allows for manipulation of states and capitals in Nigeria
### Installation
``` Javascript
npm install naija-statecapital
```
### Example
``` Javascript
var statesAndCapital = require('naija-statecapital');
console.log( "Returns a list of States", statesAndCapital.all);
console.log("Returns Abia state Capital" , statesAndCapital.all.Abia );
```
### Features
List all states and capital in Nigeria
### Tests
**Install Jasmine globally**
```Javascript
npm install jasmine -g
```
**Install jasmine-expect**
```Javascript
npm install jasmine-expect
```
**Run the tests**
```bash
npm test
```